tap
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
Content copied to clipboard
resource { bind().also { f(it) } }Content copied to clipboard
Useful for setting up/configuring an acquired resource