Fiber<R, E, A> class
abstract
While elemental does not have a fiber runtime, Fiber is used to abstract the running of ZIO's in the background.
Constructors
- Fiber()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
interruptIO
→ IO<
Unit> -
An RIO version of interrupt.
no setter
-
joinIO
→ EIO<
E, A> -
An EIO version of join.
no setter
-
runIO
→ RIO<
R, Unit> -
An RIO version of run.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addObserver(
void observer(Exit< E, A> exit)) → void Function() - Allows you to observe the exit of the fiber.
-
interrupt<
R2, E2> () → ZIO< R2, E2, Unit> - Interrupt the fiber.
-
join<
R2> () → ZIO< R2, E, A> - Allows you to re-join the fiber and get the result of the ZIO that this fiber is running.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run<
E2> () → ZIO< R, E2, Unit> - Run the fiber in the background.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited