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: R, runtimeConfig0: RuntimeConfig): Runtime[R]
Builds a new runtime given an environment
Rand 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[zio.ZEnv]
The default Runtime for most ZIO applications.
The default Runtime for most ZIO applications. This runtime is configured with the default environment, containing standard services, as well as 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[zio.ZEnv]
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): Managed[R]
Unsafely creates a
Runtimefrom aZLayerwhose resources will be allocated immediately, and not released until theRuntimeis shut down or the end of the application.Unsafely creates a
Runtimefrom aZLayerwhose resources will be allocated immediately, and not released until theRuntimeis 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.provideLayer 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 Managed