Interface for cancelables that are empty or already canceled.
Extension methods for Cancelable.
Marker for cancelables that are dummies that can be ignored.
Builds a Cancelable that executes the given
callback
when calling cancel.
Builds a Cancelable.
Given a collection of cancelables, cancel them all.
Given a collection of cancelables, cancel them all.
This function collects non-fatal exceptions and throws them all at the end as a composite, in a platform specific way:
CompositeException
Builds a Cancelable reference from a sequence,
cancelling everything on cancel
.
Builds a Cancelable reference from a sequence,
cancelling everything on cancel
.
Returns a dummy Cancelable that doesn't do anything.
Builds a Cancelable reference from an IO[Unit]
.
Builds a Cancelable reference from an IO[Unit]
.
Guarantees idempotency and reports any uncaught errors.
is the IO
value to evaluate on cancel
is an exception reporter that's used in case our IO
value is throwing an error on evaluation
Builds a Cancelable out of a Scala Promise
, completing the
promise with the given Throwable
on cancel.
Wraps a collection of cancelable references into a Cancelable
that will cancel them all by triggering a trampolined async
boundary first, in order to prevent stack overflows.
Wraps a collection of cancelable references into a Cancelable
that will cancel them all by triggering a trampolined async
boundary first, in order to prevent stack overflows.