arrow-fx / arrow.fx / IO / guarantee

guarantee

fun guarantee(finalizer: IOOf<Unit>): IO<A>

Executes the given finalizer when the source is finished, either in success or in error, or if cancelled.

As best practice, prefer bracket for the acquisition and release of resources.

See Also

guaranteeCase

bracket

Do you like Arrow?

Arrow Org
<