map

fun <B> map(f: suspend (A) -> B): Resource<B>

Deprecated

map is redundant and will be removed in Arrow 2.x.x in favor of the DSL. In case you think this method should stay, please provide feedback and your use-case on https://github.com/arrow-kt/arrow/issues

Replace with

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