Scoped

zio.Runtime.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.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Runtime[R]
class Object
trait Matchable
class Any
Show all
Self type
Scoped[R]

Members list

Type members

Classlikes

trait UnsafeAPI2

Attributes

Supertypes
class Object
trait Matchable
class Any

Inherited classlikes

trait UnsafeAPI

Attributes

Inherited from:
Runtime
Supertypes
class Object
trait Matchable
class Any
trait UnsafeAPI3

Attributes

Inherited from:
Runtime
Supertypes
class Object
trait Matchable
class Any

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.

Attributes

Definition Classes

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
Product

Attributes

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.

Attributes

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.

Attributes

Inherited from:
Runtime