diff --git a/arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt b/arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt index 32d41b6e600..f8d41a404d5 100644 --- a/arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt +++ b/arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt @@ -208,7 +208,7 @@ public sealed class Resource { arrow.fx.coroutines.continuations.resource { f(bind()) } /** Useful for setting up/configuring an acquired resource */ - public fun tap(f: suspend (A) -> Unit): Resource = + public fun tap(f: suspend (A) -> Unit): Resource = arrow.fx.coroutines.continuations.resource { bind().also { f(it) } } public fun ap(ff: Resource<(A) -> B>): Resource =