Acquires a new Cancelable.
Acquires a new Cancelable.
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.
true in case this cancelable hasn't been canceled, or false otherwise.
Represents a
Cancelable
that only executes the canceling logic when all dependent cancelable objects have been canceled.The given callback gets called after our
RefCountCancelable
is canceled and after all dependent cancelables have been canceled as well.