From 6bde2e5100ff652def773ad4f38d53a157b02552 Mon Sep 17 00:00:00 2001 From: Imran Malic Settuba <46971368+i-walker@users.noreply.github.com> Date: Mon, 14 Mar 2022 09:59:24 +0100 Subject: [PATCH] resource tap deprecation (#2684) * resource tap * update api --- .../src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =