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) extends Runtime[R]

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 addFatal(fatal: Class[_ <: Throwable])(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 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 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 enableWorkStealing(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]

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 defaultFatal: IsFatal

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)