ap

fun <B> ap(ff: Resource<(A) -> B>): Resource<B>

Deprecated

ap 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().let { a ->  ff.bind().invoke(a) } }