defer

fun <A> defer(f: suspend () -> Resource<A>): Resource<A>

Deprecated

defer is being deprecated. Use resource DSL instead

Replace with

import arrow.fx.coroutines.resource
resource { f().bind() }