Patch

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.

Companion:
object
class Object
trait Matchable
class Any

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.

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.

Inherited methods

def curried: T1 => T2 => R
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.

Returns:

a string representation of the object.

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