object Runtime extends RuntimePlatformSpecific
- Alphabetic
- By Inheritance
- Runtime
- RuntimePlatformSpecific
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
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 addLogger(logger: ZLogger[String, Any])(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
- def addSupervisor(supervisor: Supervisor[Any])(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
- def apply[R](r: ZEnvironment[R], fiberRefs0: FiberRefs): Runtime[R]
Builds a new runtime given an environment
R
and a zio.FiberRefs. - 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: Runtime[Any]
The default Runtime for most ZIO applications.
The default Runtime for most ZIO applications. This runtime is configured with the the default runtime configuration, which is optimized for typical ZIO applications.
- final val defaultBlockingExecutor: Executor
- Definition Classes
- RuntimePlatformSpecific
- final val defaultExecutor: Executor
- Definition Classes
- RuntimePlatformSpecific
- final val defaultFatal: Set[Class[_ <: Throwable]]
- Definition Classes
- RuntimePlatformSpecific
- final val defaultFlags: Set[RuntimeFlag]
- Definition Classes
- RuntimePlatformSpecific
- final val defaultLoggers: Set[ZLogger[String, Any]]
- Definition Classes
- RuntimePlatformSpecific
- final val defaultReportFatal: (Throwable) => Nothing
- Definition Classes
- RuntimePlatformSpecific
- final val defaultSupervisors: Set[Supervisor[Any]]
- Definition Classes
- RuntimePlatformSpecific
- final val defaultYieldOpCount: Int
The default number of operations the ZIO runtime should execute before yielding to other fibers.
The default number of operations the ZIO runtime should execute before yielding to other fibers.
- Definition Classes
- RuntimePlatformSpecific
- val enableCurrentFiber: ZLayer[Any, Nothing, Unit]
- lazy val enableFiberRoots: ZLayer[Any, Nothing, Unit]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logRuntime: ZLayer[Any, Nothing, Unit]
- 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 setBlockingExecutor(executor: Executor)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
- def setExecutor(executor: Executor)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
- def setReportFatal(reportFatal: (Throwable) => Nothing)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
- lazy val superviseOperations: ZLayer[Any, Nothing, Unit]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def track(weak: Boolean)(implicit trace: Trace): ZLayer[Any, Nothing, Any]
A layer that adds a supervisor that tracks all forked fibers in a set.
A layer that adds a supervisor that tracks all forked fibers in a set. Note that this may have a negative impact on performance.
- val trackRuntimeMetrics: ZLayer[Any, Nothing, Unit]
- def unsafeFromLayer[R](layer: Layer[Any, R])(implicit trace: Trace): Scoped[R]
Unsafely creates a
Runtime
from aZLayer
whose resources will be allocated immediately, and not released until theRuntime
is shut down or the end of the application.Unsafely creates a
Runtime
from aZLayer
whose resources will be allocated immediately, and not released until theRuntime
is shut down or the end of the application.This method is useful for small applications and integrating ZIO with legacy code, but other applications should investigate using ZIO.provide directly in their application entry points.
- 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()
- object Scoped