arrow-fx-coroutines / arrow.fx.coroutines.stream / Stream / bracketCase

bracketCase

fun <R> bracketCase(acquire: suspend () -> R, release: suspend (R, ExitCase) -> Unit): Stream<R>

Like bracket but the release action is passed an ExitCase.

ExitCase.Cancelled is passed to the release action in the event of either stream interruption or overall compiled effect cancellation.

Do you like Arrow?

Arrow Org
<