ZIOFinalizerNoEnvExt<R, E, A> extension

on

Properties

withScope ZIO<Scope<R>, E, A>

Available on ZIO<R, E, A>, provided by the ZIOFinalizerNoEnvExt extension

Wrap the environment of this ZIO in a Scope.
no setter

Methods

acquireRelease(IO<Unit> release(A _)) ZIO<Scope<R>, E, A>

Available on ZIO<R, E, A>, provided by the ZIOFinalizerNoEnvExt extension

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

Available on ZIO<R, E, A>, provided by the ZIOFinalizerNoEnvExt extension

Request a Scope and add a finalizer to it.