object Runtime
- Alphabetic
- By Inheritance
- Runtime
- 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 apply[R](r: ZEnvironment[R], runtimeConfig0: RuntimeConfig): Runtime[R]
Builds a new runtime given an environment
R
and a zio.RuntimeConfig. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- lazy 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 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()
- lazy val global: Runtime[Any]
The global Runtime, which piggybacks atop the global execution context available to Scala applications.
The global Runtime, which piggybacks atop the global execution context available to Scala applications. Use of this runtime is not generally recommended, unless the intention is to avoid creating any thread pools or other resources.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unsafeFromLayer[R](layer: Layer[Any, R], runtimeConfig: RuntimeConfig = RuntimeConfig.default)(implicit trace: ZTraceElement): 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