release

infix fun <A> Resource<A>.release(release: suspend (A) -> Unit): Resource<A>

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


infix fun <A> Use<A>.release(release: suspend (A) -> Unit): Resource<A>

Deprecated

Use the resource computation DSL instead