final class FiberRefs extends AnyRef
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.
- Self Type
- FiberRefs
- Alphabetic
- By Inheritance
- FiberRefs
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
delete(fiberRef: FiberRef[_]): FiberRefs
Returns a new fiber refs with the specified ref deleted from it.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fiberRefs: Set[FiberRef[_]]
Returns a set of each
FiberRef
in this collection. -
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
forkAs(childId: FiberId.Runtime): FiberRefs
Forks this collection of fiber refs as the specified child fiber id.
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.
-
def
get[A](fiberRef: FiberRef[A]): Option[A]
Gets the value of the specified
FiberRef
in this collection ofFiberRef
values if it exists orNone
otherwise. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getOrDefault[A](fiberRef: FiberRef[A]): A
Gets the value of the specified
FiberRef
in this collection ofFiberRef
values if it exists or theinitial
value of theFiberRef
otherwise. -
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
joinAs(fiberId: FiberId.Runtime)(that: FiberRefs): FiberRefs
Joins this collection of fiber refs to the specified collection, as the specified fiber id.
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.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def setAll(implicit trace: Trace): UIO[Unit]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toString(): String
- Definition Classes
- FiberRefs → AnyRef → Any
- def updatedAs[A](fiberId: FiberId.Runtime)(fiberRef: FiberRef[A], value: A): FiberRefs
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()