object Runtime extends RuntimePlatformSpecific
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Runtime
- RuntimePlatformSpecific
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- class Proxy[+R] extends Runtime[R]
-
final
case class
Scoped[+R](environment: ZEnvironment[R], fiberRefs: FiberRefs, runtimeFlags: RuntimeFlags, shutdown0: () ⇒ Unit) extends Internal[R] with Product with Serializable
A runtime that can be shutdown to release resources allocated to it.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
Rand a zio.FiberRefs. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
val
default: Runtime[Any]
The default Runtime for most 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.
-
final
val
defaultBlockingExecutor: Executor
- Definition Classes
- RuntimePlatformSpecific
-
final
val
defaultExecutor: Executor
- Definition Classes
- RuntimePlatformSpecific
-
final
val
defaultLoggers: Set[ZLogger[String, Any]]
- Definition Classes
- RuntimePlatformSpecific
-
final
val
defaultReportFatal: (Throwable) ⇒ Nothing
- Definition Classes
- RuntimePlatformSpecific
-
final
val
defaultSupervisor: Supervisor[Any]
- Definition Classes
- RuntimePlatformSpecific
- def disableFlags(flags: RuntimeFlag*)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
-
def
enableAutoBlockingExecutor(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
- Definition Classes
- RuntimePlatformSpecific
- 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
enableLoomBasedBlockingExecutor(implicit trace: Trace): ZLayer[Any, LoomNotAvailableException, Unit]
- Definition Classes
- RuntimePlatformSpecific
-
def
enableLoomBasedExecutor(implicit trace: Trace): ZLayer[Any, LoomNotAvailableException, Unit]
- Definition Classes
- RuntimePlatformSpecific
- 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]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val removeDefaultLoggers: 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]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object unsafe
Deprecated Value Members
-
def
addFatal(fatal: Class[_ <: Throwable])(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
- Annotations
- @deprecated
- Deprecated
(Since version 2.1.22) Custom Fatal handling is deprecated, kept only for binary compatibility.
-
final
val
defaultFatal: IsFatal
- Definition Classes
- RuntimePlatformSpecific
- Annotations
- @deprecated
- Deprecated
(Since version 2.1.21) IsFatal is deprecated, kept only for binary compatability.
-
def
enableWorkStealing(implicit trace: Trace): ZLayer[Any, Nothing, Unit]
- Annotations
- @deprecated
- Deprecated
(Since version 2.1.19) Unused + unimplemented: using this flag will have no effect
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated