arrow-fx-coroutines / arrow.fx.coroutines.stream / Scope / Lease

Lease

abstract class Lease

Represents one or more resources that were leased from a scope, causing their lifetimes to be extended until cancel is invoked on this lease.

Constructors

<init> Represents one or more resources that were leased from a scope, causing their lifetimes to be extended until cancel is invoked on this lease.Lease()

Functions

cancel Cancels the lease of all resources tracked by this lease.abstract suspend fun cancel(): Either<Throwable, Unit>

Do you like Arrow?

Arrow Org
<