Scoped

final case class Scoped[+R](environment: ZEnvironment[R], fiberRefs: FiberRefs, runtimeFlags: RuntimeFlags, shutdown0: () => Unit) extends Runtime[R]

A runtime that can be shutdown to release resources allocated to it.

trait Product
trait Equals
trait Runtime[R]
class Object
trait Matchable
class Any

Type members

Classlikes

Inherited classlikes

trait UnsafeAPI
Inherited from:
Runtime

Value members

Concrete methods

final override def mapEnvironment[R1](f: ZEnvironment[R] => ZEnvironment[R1]): Scoped[R1]

Constructs a new Runtime by mapping the environment.

Constructs a new Runtime by mapping the environment.

Definition Classes
override def unsafe: UnsafeAPI & UnsafeAPI2
Definition Classes

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
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.

Inherited from:
Runtime
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.

Inherited from:
Runtime