RuntimeFlags

zio.RuntimeFlags
object RuntimeFlags

Maintains a set of runtime flags. Runtime flags affect the operation of the ZIO runtime system. They are exposed to application-level code because they affect the behavior and performance of application code.

For more information on individual flags, see zio.RuntimeFlag.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object Patch

Attributes

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

Types

type Patch = Long

Value members

Concrete methods

def cooperativeYielding(flags: RuntimeFlags): Boolean
def currentFiber(flags: RuntimeFlags): Boolean
def diff(oldValue: RuntimeFlags, newValue: RuntimeFlags): Patch
def disable(flag: RuntimeFlag): Patch

Creates a patch that disables the specified runtime flag.

Creates a patch that disables the specified runtime flag.

Attributes

def enable(flag: RuntimeFlag): Patch

Creates a patch that enables the specified runtime flag.

Creates a patch that enables the specified runtime flag.

Attributes

def fiberRoots(flags: RuntimeFlags): Boolean
def interruptible(flags: RuntimeFlags): Boolean

This method returns true only if the flag Interruption is ENABLED, and also the flag WindDown is DISABLED.

This method returns true only if the flag Interruption is ENABLED, and also the flag WindDown is DISABLED.

A fiber is said to be interruptible if the feature of Interruption is turned on, and the fiber is not in its wind-down phase, in which it takes care of cleanup activities related to fiber shutdown.

Attributes

def interruption(flags: RuntimeFlags): Boolean
def isDisabled(flags: RuntimeFlags)(flag: RuntimeFlag): Boolean
def isEnabled(flags: RuntimeFlags)(flag: RuntimeFlag): Boolean
def opLog(flags: RuntimeFlags): Boolean
def opSupervision(flags: RuntimeFlags): Boolean
def patch(patch: Patch)(flags: RuntimeFlags): RuntimeFlags
def render(flags: RuntimeFlags): String
def runtimeMetrics(flags: RuntimeFlags): Boolean
def toSet(flags: RuntimeFlags): Set[RuntimeFlag]
def windDown(flags: RuntimeFlags): Boolean
def workStealing(flags: RuntimeFlags): Boolean

Concrete fields

The default set of runtime flags, recommended for most applications.

The default set of runtime flags, recommended for most applications.

Attributes

No runtime flags.

No runtime flags.

Attributes