ZIOFinalizerNoEnvExt<R, E, A> extension

on

Properties

withScope ZIO<Scope<R>, E, A>
Wrap the environment of this ZIO in a Scope.
no setter

Methods

acquireRelease(IO<Unit> release(A _)) ZIO<Scope<R>, E, A>
Request a Scope and add a finalizer from the result of this ZIO to it.
addFinalizer(IO<Unit> release) ZIO<Scope<R>, E, A>
Request a Scope and add a finalizer to it.