object Scope extends Serializable
- Alphabetic
- By Inheritance
- Scope
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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(executionStrategy: ⇒ 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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()