Updates the internal reference of this assignable cancelable to the given value.
Updates the internal reference of this assignable cancelable to the given value.
If this cancelable is already canceled, then value
is
going to be canceled on assignment as well.
this
Cancels the unit of work represented by this reference.
Cancels the unit of work represented by this reference.
Guaranteed idempotency - calling it multiple times should have the same side-effect as calling it only once. Implementations of this method should also be thread-safe.
true in case this cancelable hasn't been canceled, or false otherwise.
An ordered update is an update with an order attached and if the currently stored reference has on order that is greater than the update, then the update is ignored.
An ordered update is an update with an order attached and if the currently stored reference has on order that is greater than the update, then the update is ignored.
Represents a monix.execution.Cancelable whose underlying cancelable can be swapped for another cancelable which causes the previous underlying cancelable to be canceled.
Example:
Also see MultiAssignmentCancelable, which is similar, but doesn't cancel the old cancelable upon assignment.