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 be queried for the canceled status.
Represents a composite of multiple cancelables.
Represents a monix.execution.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 monix.execution.Cancelable whose underlying cancelable can be swapped for another cancelable which causes the previous underlying cancelable to be canceled.
Represents a monix.execution.Cancelable that can be assigned only once to another cancelable reference.
Represents a composite of cancelables that are stacked, so you can push a new reference, or pop an existing one and when it gets canceled, then the whole stack gets canceled.
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 monix.execution.Scheduler, in which the scheduling methods return a
Cancelable
, allowing the canceling of the scheduling.Example: