- Companion:
- class
Type members
Classlikes
A record containing information about a Fiber.
A runtime fiber that is executing an effect. Runtime fibers have an identity and a trace.
A runtime fiber that is executing an effect. Runtime fibers have an identity and a trace.
Value members
Concrete methods
Awaits on all fibers to be completed, successfully or not.
Awaits on all fibers to be completed, successfully or not.
- Value parameters:
- fs
Iterableof fibers to be awaited
- Returns:
UIO[Unit]
Collects all fibers into a single fiber producing an in-order list of the results.
Collects all fibers into a single fiber producing an in-order list of the results.
Collects all fibers into a single fiber discarding their results.
Collects all fibers into a single fiber discarding their results.
Retrieves the fiber currently executing on this thread, if any. This will
always be None unless called from within an executing effect and this
feature is enabled using Runtime.enableCurrentFiber.
Retrieves the fiber currently executing on this thread, if any. This will
always be None unless called from within an executing effect and this
feature is enabled using Runtime.enableCurrentFiber.
A fiber that has already failed with the specified value.
A fiber that has already failed with the specified value.
- Type parameters:
- E
error type
- Value parameters:
- e
failure value
- Returns:
Fiber[E, Nothing]failed fiber
Creates a Fiber that has already failed with the specified cause.
Creates a Fiber that has already failed with the specified cause.
Returns a Fiber that is backed by the specified Future.
Returns a Fiber that is backed by the specified Future.
- Type parameters:
- A
type of the
Fiber
- Value parameters:
- thunk
Future[A]backing theFiber
- Returns:
Fiber[Throwable, A]
Interrupts all fibers, awaiting their interruption.
Interrupts all fibers, awaiting their interruption.
- Value parameters:
- fs
Iterableof fibers to be interrupted
- Returns:
UIO[Unit]
Interrupts all fibers as by the specified fiber, awaiting their interruption.
Interrupts all fibers as by the specified fiber, awaiting their interruption.
- Value parameters:
- fiberId
The identity of the fiber to interrupt as.
- fs
Iterableof fibers to be interrupted
- Returns:
UIO[Unit]
A fiber that is already interrupted.
A fiber that is already interrupted.
- Returns:
Fiber[Nothing, Nothing]interrupted fiber
Joins all fibers, awaiting their successful completion. Attempting to join a fiber that has erred will result in a catchable error, if that error does not result from interruption.
Joins all fibers, awaiting their successful completion. Attempting to join a fiber that has erred will result in a catchable error, if that error does not result from interruption.
- Value parameters:
- fs
Iterableof fibers to be joined
- Returns:
UIO[Unit]