Fiber<A, E> class

A fiber represents a lightweight thread of execution for an effect.

Fibers allow for concurrent execution and can be awaited, interrupted, or joined with other fibers.

Properties

hashCode int
The hash code for this object.
no setterinherited
isInterruptible bool
Returns true if this fiber is interruptible
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

await() Future<Exit<A, E>>
Awaits the completion of this fiber
interrupt() → void
Interrupts this fiber (if interruptible)
join() Future<A>
Joins this fiber, returning the result or throwing on failure
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
race<B, F>(Fiber<B, F> other) Future<Either<Exit<A, E>, Exit<B, F>>>
Races this fiber with another, returning the first to complete
toString() String
A string representation of this object.
inherited
zip<B, F>(Fiber<B, F> other) Future<(Exit<A, E>, Exit<B, F>)>
Combines this fiber with another fiber, returning when both complete

Operators

operator ==(Object other) bool
The equality operator.
inherited