object Scope extends Serializable
- Alphabetic
- By Inheritance
- Scope
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait Closeable extends Scope
- final class ExtendPartiallyApplied[R] extends AnyVal
- final class UsePartiallyApplied[R] extends AnyVal
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addFinalizer(finalizer: => UIO[Any])(implicit trace: Trace): ZIO[Scope, Nothing, Unit]
Accesses a scope in the environment and adds a finalizer to it.
- def addFinalizerExit(finalizer: (Exit[Any, Any]) => UIO[Any])(implicit trace: Trace): ZIO[Scope, Nothing, Unit]
Accesses a scope in the environment and adds a finalizer to it.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val default: ZLayer[Any, Nothing, Scope]
A layer that constructs a scope and closes it when the workflow the layer is provided to completes execution, whether by success, failure, or interruption.
A layer that constructs a scope and closes it when the workflow the layer is provided to completes execution, whether by success, failure, or interruption. This can be used to close a scope when providing a layer to a workflow.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val global: Closeable
The global scope which is never closed.
The global scope which is never closed. Finalizers added to this scope will be immediately discarded and closing this scope has no effect.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def make(implicit trace: Trace): UIO[Closeable]
Makes a scope.
Makes a 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.
- def makeWith(executionStrategy0: => ExecutionStrategy)(implicit trace: Trace): UIO[Closeable]
Makes a scope.
Makes a scope. Finalizers added to this scope will be run according to the specified
ExecutionStrategy
. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parallel(implicit trace: Trace): UIO[Closeable]
Makes a scope.
Makes a scope. Finalizers added to this scope will be run in parallel when this scope is closed.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()