arrow-fx-coroutines / arrow.fx.coroutines.stream / Scope / Lease / cancel
abstract suspend fun cancel(): Either<
Throwable
,
Unit
>
Cancels the lease of all resources tracked by this lease.
This may run finalizers on some of the resources (depending on the state of their owning scopes).
If one or more finalizers fail, the returned action completes with a Left(t)
, providing the failure.
Do you like Arrow?
✖