Package arrow.fx.coroutines.continuations


Link copied to clipboard
interface ResourceScope

Computation block for the Resource type. The Resource allows us to describe resources as immutable values, and compose them together in simple ways. This way you can split the logic of what a Resource is and how it should be closed from how you use them.


Link copied to clipboard
fun <A> resource(f: suspend ResourceScope.() -> A): Resource<A>