Adds a finalizer to this scope.
Adds a finalizer to this scope. The finalizer is guaranteed to be run when the scope is closed.
Closes a scope with the specified exit value, running all finalizers that have been added to the scope.
A simplified version of addFinalizerWith when the finalizer does not
depend on the Exit value that the scope is closed with.
A simplified version of addFinalizerWith when the finalizer does not
depend on the Exit value that the scope is closed with.
Extends the scope of a ZIO workflow that needs a scope into this scope by
providing it to the workflow but not closing the scope when the workflow
completes execution.
Extends the scope of a ZIO workflow that needs a scope into this scope by
providing it to the workflow but not closing the scope when the workflow
completes execution. This allows extending a scoped value into a larger
scope.
Uses the scope by providing it to a ZIO workflow that needs a scope,
guaranteeing that the scope is closed with the result of that workflow as
soon as the workflow completes execution, whether by success, failure, or
interruption.