The identity of a Fiber, described by the time it began life, and a monotonically increasing sequence number generated from an atomic counter.
A runtime fiber that is executing an effect.
A runtime fiber that is executing an effect. Runtime fibers have an identity and a trace.
A synthetic fiber that is created from a pure value or that combines existing fibers.
Awaits on all fibers to be completed, successfully or not.
Awaits on all fibers to be completed, successfully or not.
Iterable
of fibers to be awaited
UIO[Unit]
Collects all fibers into a single fiber producing an in-order list of the results.
A fiber that is done with the specified zio.Exit value.
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.
A fiber that has already failed with the specified value.
A fiber that has already failed with the specified value.
error type
failure value
Fiber[E, Nothing]
failed fiber
A FiberRef
that stores the name of the fiber, which defaults to None
.
Lifts an zio.IO into a Fiber
.
Lifts an zio.IO into a Fiber
.
error type
type of the fiber
IO[E, A]
to turn into a Fiber
UIO[Fiber[E, A]]
Returns a Fiber
that is backed by the specified Future
.
Returns a Fiber
that is backed by the specified Future
.
type of the Fiber
Future[A]
backing the Fiber
Fiber[Throwable, A]
WARNING: this uses the blocking Future#get, consider using fromCompletionStage
WARNING: this uses the blocking Future#get, consider using fromCompletionStage
Creates a Fiber
that is halted with the specified cause.
Interrupts all fibers, awaiting their interruption.
Interrupts all fibers, awaiting their interruption.
Iterable
of fibers to be interrupted
UIO[Unit]
Interrupts all fibers as by the specified fiber, awaiting their interruption.
Interrupts all fibers as by the specified fiber, awaiting their interruption.
The identity of the fiber to interrupt as.
Iterable
of fibers to be interrupted
UIO[Unit]
A fiber that is already interrupted.
A fiber that is already interrupted.
Fiber[Nothing, Nothing]
interrupted fiber
Joins all fibers, awaiting their _successful_ completion.
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.
Iterable
of fibers to be joined
UIO[Unit]
A fiber that never fails or succeeds.
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 of the fiber
success value
Fiber[E, A]
succeeded fiber
A fiber that has already succeeded with unit.
Retrieves the fiber currently executing on this thread, if any.
Retrieves the fiber currently executing on this thread, if any. This will
always be None
unless called from within an executing effect.