https://kotlinlang.org logo
#arrow
Title
r

raulraja

01/28/2019, 9:04 PM
@bjonnh There is also versions available of these
Bracket
functions in
fx
in their suspended form which would remove the need to call
bind
in your code for those:
Copy code
bracketCase
bracket
uncancelable
guarantee
guaranteeCase
bracketCase
for example has the signature :
Copy code
suspend fun <A, B> bracketCase(
    f: suspend () -> A,
    release: suspend (A, ExitCase<E>) -> Unit,
    use: suspend (A) -> B
  ): B