o

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RuntimeFlags
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Patch = Long

Value Members

  1. def apply(flags: RuntimeFlag*): RuntimeFlags
  2. def cooperativeYielding(flags: RuntimeFlags): Boolean
  3. def currentFiber(flags: RuntimeFlags): Boolean
  4. val default: RuntimeFlags

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

  5. def diff(oldValue: RuntimeFlags, newValue: RuntimeFlags): Patch
  6. def disable(flag: RuntimeFlag): Patch

    Creates a patch that disables the specified runtime flag.

  7. def disable(flags: RuntimeFlags)(flag: RuntimeFlag): RuntimeFlags
  8. def disableAll(self: RuntimeFlags)(that: RuntimeFlags): RuntimeFlags
  9. def enable(flag: RuntimeFlag): Patch

    Creates a patch that enables the specified runtime flag.

  10. def enable(flags: RuntimeFlags)(flag: RuntimeFlag): RuntimeFlags
  11. def enableAll(self: RuntimeFlags)(that: RuntimeFlags): RuntimeFlags
  12. def fiberRoots(flags: RuntimeFlags): Boolean
  13. 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.

  14. def interruption(flags: RuntimeFlags): Boolean
  15. def isDisabled(flags: RuntimeFlags)(flag: RuntimeFlag): Boolean
  16. def isEnabled(flags: RuntimeFlags)(flag: RuntimeFlag): Boolean
  17. val none: RuntimeFlags

    No runtime flags.

  18. def opLog(flags: RuntimeFlags): Boolean
  19. def opSupervision(flags: RuntimeFlags): Boolean
  20. def patch(patch: Patch)(flags: RuntimeFlags): RuntimeFlags
  21. def render(flags: RuntimeFlags): String
  22. def runtimeMetrics(flags: RuntimeFlags): Boolean
  23. def toSet(flags: RuntimeFlags): Set[RuntimeFlag]
  24. def windDown(flags: RuntimeFlags): Boolean
  25. object Patch