Attributes
Members list
Type members
Classlikes
A record containing information about a Fiber.
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
Attributes
- 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.
Attributes
Collects all fibers into a single fiber discarding their results.
Collects all fibers into a single fiber discarding their results.
Attributes
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.
Attributes
Dumps all fibers to the console.
Dumps all fibers to the console.
Attributes
Dumps all fibers to the specified callback.
Dumps all fibers to the specified callback.
Attributes
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
Attributes
- 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.
Attributes
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
Attributes
- Returns
-
Fiber[Throwable, A]
Interrupts all fibers, awaiting their interruption.
Interrupts all fibers, awaiting their interruption.
Value parameters
- fs
-
Iterable
of fibers to be interrupted
Attributes
- 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
Attributes
- Returns
-
UIO[Unit]
A fiber that is already interrupted.
A fiber that is already interrupted.
Attributes
- 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
Attributes
- Returns
-
UIO[Unit]
Returns a chunk containing all root fibers. Due to concurrency, the returned chunk is only weakly consistent.
Returns a chunk containing all root fibers. Due to concurrency, the returned chunk is only weakly consistent.
Attributes
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
Attributes
- Returns
-
Fiber[E, A]
succeeded fiber
Inherited methods
Attributes
- Inherited from:
- FiberPlatformSpecific (hidden)
WARNING: this uses the blocking Future#get, consider using fromCompletionStage
WARNING: this uses the blocking Future#get, consider using fromCompletionStage
Attributes
- Inherited from:
- FiberPlatformSpecific (hidden)