releaseCase

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

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