Builds a new runtime given an environment R
and a zio.RuntimeConfig.
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.
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.
Unsafely creates a Runtime
from a ZLayer
whose resources will be
allocated immediately, and not released until the Runtime
is shut down or
the end of the application.
Unsafely creates a Runtime
from a ZLayer
whose resources will be
allocated immediately, and not released until the Runtime
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.