Closeable
Attributes
- Source
- Scope.scala
- Graph
-
- Supertypes
- Self type
Members list
Value members
Abstract methods
Closes a scope with the specified exit value, running all finalizers that have been added to the scope.
Closes a scope with the specified exit value, running all finalizers that have been added to the scope.
Attributes
- Source
- Scope.scala
Returns the number of finalizers that have been added to this scope and not yet finalized.
Returns the number of finalizers that have been added to this scope and not yet finalized.
Attributes
- Source
- Scope.scala
Concrete methods
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.
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.
Attributes
- Source
- Scope.scala
Inherited methods
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.
Attributes
- Inherited from:
- Scope
- Source
- Scope.scala
The execution strategy finalizers associated with this scope will be run with.
The execution strategy finalizers associated with this scope will be run with.
Attributes
- Inherited from:
- Scope
- Source
- Scope.scala
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.
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.
Attributes
- Inherited from:
- Scope
- Source
- Scope.scala
Forks a new scope that is a child of this scope. Finalizers added to this scope will be run sequentially in the reverse of the order in which they were added when this scope is closed. The child scope will automatically be closed when this scope is closed.
Forks a new scope that is a child of this scope. Finalizers added to this scope will be run sequentially in the reverse of the order in which they were added when this scope is closed. The child scope will automatically be closed when this scope is closed.
Attributes
- Inherited from:
- Scope
- Source
- Scope.scala
Inherited and Abstract methods
Adds a finalizer to this scope. The finalizer is guaranteed to be run when the scope is closed.
Adds a finalizer to this scope. The finalizer is guaranteed to be run when the scope is closed.
Attributes
- Inherited from:
- Scope
- Source
- Scope.scala
Forks a new scope that is a child of this scope. Finalizers added to the child scope will be run according to the specified ExecutionStrategy. The child scope will automatically be closed when this scope is closed.
Forks a new scope that is a child of this scope. Finalizers added to the child scope will be run according to the specified ExecutionStrategy. The child scope will automatically be closed when this scope is closed.
Attributes
- Inherited from:
- Scope
- Source
- Scope.scala