Alias for update(value)
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 a single time. Implementations of this method should also be thread-safe.
true if cancellation happened, or false if another execution happened previously or concurrently.
true in case this cancelable hasn't been canceled.
Sets the underlying cancelable reference with s
.
Sets the underlying cancelable reference with s
.
In case this SingleAssignmentCancelable
is already canceled,
then the reference value
will also be canceled on assignment.
Throws IllegalStateException
in case this cancelable has already
been assigned.
Represents a monifu.concurrent.Cancelable that can be assigned only once to another cancelable reference.
Similar to monifu.concurrent.cancelables.MultiAssignmentCancelable, except that in case of multi-assignment, it throws a
java.lang.IllegalStateException
.If the assignment happens after this cancelable has been canceled, then on assignment the reference will get canceled too.
Useful in case you need a forward reference.