object RuntimeFlag
- Alphabetic
- By Inheritance
- RuntimeFlag
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val all: Set[RuntimeFlag]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- case object CooperativeYielding extends RuntimeFlag with Product with Serializable
The cooperative yielding flag determines whether the ZIO runtime will yield to another fiber while executing long-running effects or continuously forking fibers.
The cooperative yielding flag determines whether the ZIO runtime will yield to another fiber while executing long-running effects or continuously forking fibers.
Disabling this flag is highly discouraged but it is necessary for cases where fine-grained control over fiber scheduling is required.
- case object CurrentFiber extends RuntimeFlag with Product with Serializable
The current fiber flag determines whether or not the ZIO runtime system will store the current fiber inside a
ThreadLocal
whenever a fiber begins executing on a thread.The current fiber flag determines whether or not the ZIO runtime system will store the current fiber inside a
ThreadLocal
whenever a fiber begins executing on a thread. Use of this flag will negatively impact performance, but is essential where interop with ThreadLocal is required. - case object EagerShiftBack extends RuntimeFlag with Product with Serializable
Determines whether the ZIO runtime will eagerly shift back execution to the default executor following (enabled) or minimize context shifts by continuing execution on the same thread as long as possible (disabled).
Determines whether the ZIO runtime will eagerly shift back execution to the default executor following (enabled) or minimize context shifts by continuing execution on the same thread as long as possible (disabled).
Enabling this flag can positively or negatively affect performance depending on the specific characteristics of the application. For more info on this refer to this blog post.
- case object FiberRoots extends RuntimeFlag with Product with Serializable
The fiber roots flag determines whether or not the ZIO runtime system will keep track of all fiber roots.
The fiber roots flag determines whether or not the ZIO runtime system will keep track of all fiber roots. Use of this flag will negatively impact performance, but is required in order for fiber dumps functionality.
- case object Interruption extends RuntimeFlag with Product with Serializable
The interruption flag determines whether or not the ZIO runtime system will interrupt a fiber.
- case object OpLog extends RuntimeFlag with Product with Serializable
The op log flag determines whether or not the ZIO runtime system will attempt to log all operations of the ZIO runtime.
The op log flag determines whether or not the ZIO runtime system will attempt to log all operations of the ZIO runtime. Use of this flag will negatively impact performance and generate massive volumes of ultra-fine debug logs. Only recommended for debugging.
- case object OpSupervision extends RuntimeFlag with Product with Serializable
The op supervision flag determines whether or not the IO runtime system will supervise all operations of the ZIO runtime.
The op supervision flag determines whether or not the IO runtime system will supervise all operations of the ZIO runtime. Use of this flag will negatively impact performance, but is required for some operations, such as profiling.
- case object RuntimeMetrics extends RuntimeFlag with Product with Serializable
The runtime metrics flag determines whether or not the ZIO runtime system will collect metrics about the ZIO runtime.
The runtime metrics flag determines whether or not the ZIO runtime system will collect metrics about the ZIO runtime. Use of this flag will have a very small negative impact on performance, but generates very helpful operational insight into running ZIO applications that can be exported to Prometheus or other tools via ZIO Metrics.
- case object WindDown extends RuntimeFlag with Product with Serializable
The wind down flag determines whether the ZIO runtime system will execute effects in wind-down mode.
The wind down flag determines whether the ZIO runtime system will execute effects in wind-down mode. In wind-down mode, even if interruption is enabled and a fiber has been interrupted, the fiber will continue its execution uninterrupted.
- case object WorkStealing extends RuntimeFlag with Product with Serializable
The work stealing flag determines whether threads running fibers about to asynchronously suspend will first attempt to steal work before suspending.