Runtime

zio.Runtime
See theRuntime companion object
trait Runtime[+R]

A Runtime[R] is capable of executing tasks within an environment R.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Proxy[R]
class Scoped[R]
Self type
Runtime[R]

Members list

Type members

Classlikes

trait UnsafeAPI

Attributes

Supertypes
class Object
trait Matchable
class Any
trait UnsafeAPI3

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Abstract methods

The environment of the runtime.

The environment of the runtime.

Attributes

The zio.FiberRefs that will be used for all effects executed by this runtime.

The zio.FiberRefs that will be used for all effects executed by this runtime.

Attributes

The zio.RuntimeFlags that will be used for all effects executed by this zio.Runtime.

The zio.RuntimeFlags that will be used for all effects executed by this zio.Runtime.

Attributes

Concrete methods

def mapEnvironment[R1](f: (ZEnvironment[R]) => ZEnvironment[R1]): Runtime[R1]

Constructs a new Runtime by mapping the environment.

Constructs a new Runtime by mapping the environment.

Attributes

final def run[E, A](zio: ZIO[R, E, A])(implicit trace: Trace): IO[E, A]

Runs the effect "purely" through an async boundary. Useful for testing.

Runs the effect "purely" through an async boundary. Useful for testing.

Attributes

def withEnvironment[R1](r1: ZEnvironment[R1]): Runtime[R1]

Constructs a new Runtime with the specified new environment.

Constructs a new Runtime with the specified new environment.

Attributes