Runtime

trait Runtime[+R]

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

Companion:
object
class Object
trait Matchable
class Any
class Proxy[R]
class Scoped[R]

Type members

Classlikes

trait UnsafeAPI

Value members

Abstract methods

The environment of the runtime.

The environment of the runtime.

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.

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.

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.

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.

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.