Runtime

zio.Runtime
See theRuntime companion trait
object Runtime

Attributes

Companion
trait
Source
Runtime.scala
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

Source
Runtime.scala
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

Source
Runtime.scala
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

Source
Runtime.scala
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]

Attributes

Source
Runtime.scala
def addLogger(logger: ZLogger[String, Any])(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def addSupervisor(supervisor: Supervisor[Any])(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
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

Source
Runtime.scala
def disableFlags(flags: RuntimeFlag*)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def enableCooperativeYielding(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def enableCurrentFiber(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def enableFiberRoots(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def enableFlags(flags: RuntimeFlag*)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def enableOpLog(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def enableOpSupervision(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def enableRuntimeMetrics(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def setBlockingExecutor(executor: Executor)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def setConfigProvider(configProvider: ConfigProvider)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def setExecutor(executor: Executor)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def setReportFatal(reportFatal: Throwable => Nothing)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala
def setUnhandledErrorLogLevel(logLevel: LogLevel)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala

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.
Source
Runtime.scala
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
Source
Runtime.scala

Inherited methods

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

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)
Source
RuntimePlatformSpecific.scala

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)
Source
RuntimePlatformSpecific.scala

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)
Source
RuntimePlatformSpecific.scala

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

Source
Runtime.scala
val removeDefaultLoggers: ZLayer[Any, Nothing, Unit]

Attributes

Source
Runtime.scala

Inherited fields

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)
Source
RuntimePlatformSpecific.scala

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
RuntimePlatformSpecific (hidden)
Source
RuntimePlatformSpecific.scala

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)
Source
RuntimePlatformSpecific.scala