object Runtime
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Runtime
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
Value Members
-
def
apply[R](r: R, platform0: Platform): Runtime[R]
Builds a new runtime given an environment
R
and a zio.internal.Platform. - lazy val default: Runtime[zio.ZEnv]
- lazy val global: Runtime[zio.ZEnv]
-
def
unsafeFromLayer[R <: Has[_]](layer: Layer[Any, R], platform: Platform = Platform.default): 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.provideLayer directly in their application entry points.
- object Managed