ZIOFinalizerExt<R extends ScopeMixin, E, A> extension

on

Properties

forkScopeIO RIO<R, Fiber<R, E, A>>
An IO version of fork.
no setter

Methods

acquireRelease(IO<Unit> release(A _)) ZIO<R, E, A>
Add a finalizer to this ZIO for the current Scope, using the result of this ZIO.
addFinalizer(IO<Unit> release) ZIO<R, E, A>
Add a finalizer to this ZIO for the current Scope.
forkScope<E2>() ZIO<R, E2, Fiber<R, E, A>>
Fork this ZIO into a Fiber, running it in the background.