Skip to content

Commit

Permalink
resource tap deprecation (#2684)
Browse files Browse the repository at this point in the history
* resource tap

* update api
  • Loading branch information
i-walker committed Mar 14, 2022
1 parent 5faf3f4 commit 6bde2e5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -208,7 +208,7 @@ public sealed class Resource<out A> {
arrow.fx.coroutines.continuations.resource { f(bind()) }

/** Useful for setting up/configuring an acquired resource */
public fun <B> tap(f: suspend (A) -> Unit): Resource<A> =
public fun tap(f: suspend (A) -> Unit): Resource<A> =
arrow.fx.coroutines.continuations.resource { bind().also { f(it) } }

public fun <B> ap(ff: Resource<(A) -> B>): Resource<B> =
Expand Down

0 comments on commit 6bde2e5

Please sign in to comment.