Patch

zio.FiberRefs.Patch
See thePatch companion object
sealed trait Patch extends (Runtime, FiberRefs) => FiberRefs

A Patch captures the changes in FiberRef values made by a single fiber as a value. This allows fibers to apply the changes made by a workflow without inheriting all the FiberRef values of the fiber that executed the workflow.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(fiberId: Runtime, fiberRefs: FiberRefs): FiberRefs

Applies the changes described by this patch to the specified collection of FiberRef values.

Applies the changes described by this patch to the specified collection of FiberRef values.

Attributes

def combine(that: Patch): Patch

Combines this patch and the specified patch to create a new patch that describes applying the changes from this patch and the specified patch sequentially.

Combines this patch and the specified patch to create a new patch that describes applying the changes from this patch and the specified patch sequentially.

Attributes

Inherited methods

def curried: T1 => T2 => R

Attributes

Inherited from:
Function2
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function2 -> Any
Inherited from:
Function2
def tupled: ((T1, T2)) => R

Attributes

Inherited from:
Function2