Represents a class of cancelables that can hold an internal reference to another cancelable (and thus has to support the assignment operator).
Represents a Cancelable that can queried for the canceled status.
Represents a composite of multiple cancelables.
Represents a scalax.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 scalax.concurrent.Cancelable whose underlying cancelable can be swapped for another cancelable which causes the previous underlying cancelable to be canceled.
Represents a scalax.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 scalax.concurrent.Scheduler, in which the scheduling methods return a
Cancelable
, allowing the canceling of the scheduling.Example: