final class SingleAssignCancelableF[F[_]] extends Bool[F]
Represents a monix.catnap.CancelableF that can be assigned only once to another cancelable reference.
If the assignment happens after this cancelable has been canceled, then on assignment the reference will get canceled too. If the assignment already happened, then a second assignment will raise an error.
Useful in case you need a forward reference.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SingleAssignCancelableF
- Bool
- BooleanCancelableF
- AssignableCancelableF
- CancelableF
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val cancel: CancelToken[F]
- Definition Classes
- SingleAssignCancelableF → CancelableF
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.CloneNotSupportedException])
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val isCanceled: F[Boolean]
- returns
true in case this cancelable hasn't been canceled, or false otherwise.
- Definition Classes
- SingleAssignCancelableF → BooleanCancelableF
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def set(ref: CancelableF[F]): F[Unit]
Sets the underlying reference to the given CancelableF reference.
Sets the underlying reference to the given CancelableF reference.
Contract:
- the given reference gets canceled in case the assignable was already canceled
- this operation might throw an error if the contract of the
implementation doesn't allow for calling
set
multiple times (e.g. SingleAssignCancelableF)
- Definition Classes
- SingleAssignCancelableF → AssignableCancelableF
- final def synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.InterruptedException])