Represents a Cancelable that can queried for the canceled status.
Represents a composite of multiple cancelables.
Represents a monifu.concurrent.Cancelable whose underlying cancelable reference can be swapped for another.
Represents a Cancelable
that only executes the canceling logic when all
dependent cancelable objects have been canceled.
Represents a monifu.concurrent.Cancelable that can be assigned only once to another cancelable reference.
Cancelables represent asynchronous units of work or other things scheduled for execution and whose execution can be canceled.
One use-case is the scheduling done by monifu.concurrent.Scheduler, in which the scheduling methods return a
Cancelable
, allowing the canceling of the scheduling.Example: