arrow-fx / arrow.fx / IO / 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 canceled.
As best practice, prefer bracket for the acquisition and release of resources.
Do you like Arrow?