tap

fun tap(f: suspend (A) -> Unit): Resource<A>

Deprecated

tap 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 { bind().also { f(it) } }

Useful for setting up/configuring an acquired resource