- Companion:
- class
Type members
Classlikes
The identity of a Fiber, described by the time it began life, and a monotonically increasing sequence number generated from an atomic counter.
The identity of a Fiber, described by the time it began life, and a monotonically increasing sequence number generated from an atomic counter.
- Companion:
- object
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
Iterable
of 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 a complete dump of the specified fibers and all children of the fibers.
Collects a complete dump of the specified fibers and all children of the fibers.
Collects a complete dump of the specified fibers and all children of the fibers and renders it as a string.
Collects a complete dump of the specified fibers and all children of the fibers and renders it as a string.
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
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]
Creates a Fiber
that is halted with the specified cause.
Creates a Fiber
that is halted with the specified cause.
Interrupts all fibers, awaiting their interruption.
Interrupts all fibers, awaiting their interruption.
- Value parameters:
- fs
Iterable
of 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
Iterable
of 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
Iterable
of fibers to be joined
- Returns:
UIO[Unit]
Collects a complete dump of the specified fibers and all children of the fibers and renders it to the console.
Collects a complete dump of the specified fibers and all children of the fibers and renders it to the console.
Returns a fiber that has already succeeded with the specified value.
Returns a fiber that has already succeeded with the specified value.
- Type parameters:
- A
type of the fiber
- E
error type
- Value parameters:
- a
success value
- Returns:
Fiber[E, A]
succeeded fiber