Attributes
- Companion
- class
- Source
- Fiber.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Fiber.type
Members list
Type members
Classlikes
A record containing information about a Fiber.
A record containing information about a Fiber.
Value parameters
- children
-
The fiber's forked children.
- executor
-
The Executor executing this fiber
- id
-
The fiber's unique identifier
- interrupters
-
The set of fibers attempting to interrupt the fiber or its ancestors.
Attributes
- Source
- Fiber.scala
- Supertypes
Attributes
- Source
- Fiber.scala
- Supertypes
- Self type
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.
Attributes
- Source
- Fiber.scala
- Supertypes
- Self type
-
Attributes
- Companion
- trait
- Source
- Fiber.scala
- Supertypes
- Self type
-
Status.type
Attributes
- Companion
- object
- Source
- Fiber.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
- Self type
A synthetic fiber that is created from a pure value or that combines existing fibers.
A synthetic fiber that is created from a pure value or that combines existing fibers.
Attributes
- Source
- Fiber.scala
- Supertypes
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
Attributes
- Returns
-
UIO[Unit] - Source
- Fiber.scala
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
- Source
- Fiber.scala
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.
Attributes
- Source
- Fiber.scala
A fiber that is done with the specified zio.Exit value.
A fiber that is done with the specified zio.Exit value.
Type parameters
- A
-
type of the fiber
- E
-
error type
Value parameters
- exit
-
zio.Exit value
Attributes
- Returns
-
Fiber[E, A] - Source
- Fiber.scala
Dumps all fibers to the console.
Dumps all fibers to the specified callback.
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 - Source
- Fiber.scala
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
Attributes
- Returns
-
Fiber[Throwable, A] - Source
- Fiber.scala
Lifts an zio.ZIO into a Fiber.
Lifts an zio.ZIO into a Fiber.
Type parameters
- A
-
type of the fiber
- E
-
error type
Value parameters
- io
-
IO[E, A]to turn into aFiber
Attributes
- Returns
-
UIO[Fiber[E, A]] - Source
- Fiber.scala
Interrupts all fibers, awaiting their interruption.
Interrupts all fibers, awaiting their interruption.
Value parameters
- fs
-
Iterableof fibers to be interrupted
Attributes
- Returns
-
UIO[Unit] - Source
- Fiber.scala
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
Attributes
- Returns
-
UIO[Unit] - Source
- Fiber.scala
A fiber that is already interrupted.
A fiber that is already interrupted.
Attributes
- Returns
-
Fiber[Nothing, Nothing]interrupted fiber - Source
- Fiber.scala
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
Attributes
- Returns
-
UIO[Unit] - Source
- Fiber.scala
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
- Source
- Fiber.scala
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 - Source
- Fiber.scala
Inherited methods
Attributes
- Inherited from:
- FiberPlatformSpecific (hidden)
- Source
- FiberPlatformSpecific.scala
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)
- Source
- FiberPlatformSpecific.scala
Concrete fields
A fiber that never fails or succeeds.
A fiber that has already succeeded with unit.