Runtime

zio.Runtime
See theRuntime companion trait
object Runtime

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Runtime.type

Members list

Type members

Classlikes

class Proxy[+R](underlying: Runtime[R]) extends Runtime[R]

Attributes

Supertypes
trait Runtime[R]
class Object
trait Matchable
class Any
final case class Scoped[+R](environment: ZEnvironment[R], fiberRefs: FiberRefs, runtimeFlags: RuntimeFlags, shutdown0: () => Unit)

A runtime that can be shutdown to release resources allocated to it.

A runtime that can be shutdown to release resources allocated to it.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Runtime[R]
class Object
trait Matchable
class Any
Show all
Self type
Scoped[R]
object unsafe

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
unsafe.type

Value members

Concrete methods

def addLogAnnotation(annotation: LogAnnotation)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def addLogger(logger: ZLogger[String, Any])(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def addSupervisor(supervisor: Supervisor[Any])(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def apply[R](r: ZEnvironment[R], fiberRefs0: FiberRefs, runtimeFlags0: RuntimeFlags): Runtime[R]

Builds a new runtime given an environment R and a zio.FiberRefs.

Builds a new runtime given an environment R and a zio.FiberRefs.

Attributes

def disableFlags(flags: RuntimeFlag*)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def enableCooperativeYielding(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def enableCurrentFiber(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def enableFiberRoots(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def enableFlags(flags: RuntimeFlag*)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def enableOpLog(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def enableOpSupervision(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def enableRuntimeMetrics(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def setBlockingExecutor(executor: Executor)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def setConfigProvider(configProvider: ConfigProvider)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def setExecutor(executor: Executor)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def setReportFatal(reportFatal: Throwable => Nothing)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
def setUnhandledErrorLogLevel(logLevel: LogLevel)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Deprecated methods

def addFatal(fatal: Class[_ <: Throwable])(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Deprecated
[Since version 2.1.22] Custom Fatal handling is deprecated, kept only for binary compatibility.
def enableWorkStealing(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Deprecated
[Since version 2.1.19] Unused + unimplemented: using this flag will have no effect

Inherited methods

def enableAutoBlockingExecutor(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)

Concrete fields

val default: Runtime[Any]

The default Runtime for most ZIO applications. This runtime is configured with the the default runtime configuration, which is optimized for typical 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.

Attributes

val removeDefaultLoggers: ZLayer[Any, Nothing, Unit]

Inherited fields

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)
final val defaultLoggers: Set[ZLogger[String, Any]]

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)
final val defaultReportFatal: Throwable => Nothing

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)
final val defaultSupervisor: Supervisor[Any]

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)

Deprecated and Inherited fields

final val defaultFatal: IsFatal

Attributes

Deprecated
[Since version 2.1.21] IsFatal is deprecated, kept only for binary compatability.
Inherited from:
RuntimePlatformSpecific (hidden)