object Runtime
- Alphabetic
- By Inheritance
- Runtime
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @native()
-
lazy val
default: Runtime[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: 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()
-
lazy val
global: Runtime[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)(implicit trace: ZTraceElement): Managed[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( ... )
-
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()
- object Managed