FiberRefs is a data type that represents a collection of FiberRef values.
This allows safely propagating FiberRef values across fiber boundaries, for
example between an asynchronous producer and consumer.
- Companion:
- object
Value members
Concrete methods
Returns a new fiber refs with the specified ref deleted from it.
Returns a new fiber refs with the specified ref deleted from it.
Returns a set of each FiberRef in this collection.
Returns a set of each FiberRef in this collection.
Forks this collection of fiber refs as the specified child fiber id. This will potentially modify the value of the fiber refs, as determined by the individual fiber refs that make up the collection.
Forks this collection of fiber refs as the specified child fiber id. This will potentially modify the value of the fiber refs, as determined by the individual fiber refs that make up the collection.
Gets the value of the specified FiberRef in this collection of FiberRef
values if it exists or None otherwise.
Gets the value of the specified FiberRef in this collection of FiberRef
values if it exists or None otherwise.
Gets the value of the specified FiberRef in this collection of FiberRef
values if it exists or the initial value of the FiberRef otherwise.
Gets the value of the specified FiberRef in this collection of FiberRef
values if it exists or the initial value of the FiberRef otherwise.
Joins this collection of fiber refs to the specified collection, as the specified fiber id. This will perform diffing and merging to ensure preservation of maximum information from both child and parent refs.
Joins this collection of fiber refs to the specified collection, as the specified fiber id. This will perform diffing and merging to ensure preservation of maximum information from both child and parent refs.