FiberRef

zio.FiberRef
See theFiberRef companion trait
object FiberRef

Attributes

Companion
trait
Source
FiberRef.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
FiberRef.type

Members list

Type members

Classlikes

abstract class Proxy[A](val delegate: FiberRef[A]) extends FiberRef[A]

Wraps another FiberRef and delegates all operations to it. Extend this if you need a FiberRef with some specific behavior overridden.

Wraps another FiberRef and delegates all operations to it. Extend this if you need a FiberRef with some specific behavior overridden.

Attributes

Source
FiberRef.scala
Supertypes
trait FiberRef[A]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
class TrackingFiberRef[A]
object unsafe

Attributes

Source
FiberRef.scala
Supertypes
class Object
trait Matchable
class Any
Self type
unsafe.type

Types

type WithPatch[Value0, Patch0] = FiberRef[Value0] { type Patch = Patch0; }

Attributes

Source
FiberRef.scala

Value members

Concrete methods

def make[A](initial: => A, fork: A => A = ..., join: (A, A) => A = ...)(implicit trace: Trace): ZIO[Scope, Nothing, FiberRef[A]]

Creates a new FiberRef with given initial value.

Creates a new FiberRef with given initial value.

Attributes

Source
FiberRef.scala
def makeEnvironment[A](initial: => ZEnvironment[A])(implicit trace: Trace): ZIO[Scope, Nothing, WithPatch[ZEnvironment[A], Patch[A, A]]]

Creates a new FiberRef with specified initial value of the ZEnvironment, using ZEnvironment.Patch to combine updates to the ZEnvironment in a compositional way.

Creates a new FiberRef with specified initial value of the ZEnvironment, using ZEnvironment.Patch to combine updates to the ZEnvironment in a compositional way.

Attributes

Source
FiberRef.scala
def makePatch[Value, Patch](initial: Value, differ: Differ[Value, Patch])(implicit trace: Trace): ZIO[Scope, Nothing, WithPatch[Value, Patch]]

Creates a new FiberRef with the specified initial value, using the specified patch type to combine updates to the value in a compositional way.

Creates a new FiberRef with the specified initial value, using the specified patch type to combine updates to the value in a compositional way.

Attributes

Source
FiberRef.scala
def makePatch[Value, Patch](initial: Value, differ: Differ[Value, Patch], fork: Patch)(implicit trace: Trace): ZIO[Scope, Nothing, WithPatch[Value, Patch]]

Creates a new FiberRef with the specified initial value, using the specified patch type to combine updates to the value in a compositional way.

Creates a new FiberRef with the specified initial value, using the specified patch type to combine updates to the value in a compositional way.

Attributes

Source
FiberRef.scala
def makeRuntimeFlags(initial: RuntimeFlags)(implicit trace: Trace): ZIO[Scope, Nothing, WithPatch[RuntimeFlags, Patch]]

Attributes

Source
FiberRef.scala
def makeSet[A](initial: => Set[A])(implicit trace: Trace): ZIO[Scope, Nothing, WithPatch[Set[A], SetPatch[A]]]

Attributes

Source
FiberRef.scala