//arrow-fx-coroutines/arrow.fx.coroutines/releaseCase

releaseCase

common infix fun <A> Use<A>.releaseCase(release: suspend (A, ExitCase) -> Unit): Resource<A>

common infix fun <A> Resource<A>.releaseCase(release: suspend (A, ExitCase) -> Unit): Resource<A>

Composes a releaseCase action to a Resource.use action creating a Resource.

Do you like Arrow?

Arrow Org
<