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.
Returns the current order index, useful for working with orderedUpdate in instances where the OrderedCancelable reference is shared.
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.
Useful to force ordering for concurrent updates.
Represents a Cancelable whose underlying cancelable reference can be swapped for another and that has the capability to force ordering of updates.
For the most part it's very similar with MultiAssignCancelable:
However it also has the capability of doing orderedUpdate:
Also see:
OrderedCancelable
, but simpler, without the capability of doing ordered updates and possibly more efficient