object Fiber
- Alphabetic
- By Inheritance
- Fiber
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
case class
Descriptor(id: FiberId, interrupted: Boolean, interruptStatus: InterruptStatus, superviseStatus: SuperviseStatus, executor: Executor, children: UIO[IndexedSeq[Fiber[_, _]]]) extends Product with Serializable
A record containing information about a Fiber.
A record containing information about a Fiber.
- id
The fiber's unique identifier
- interrupted
Indicates if this fiber was interrupted
- executor
The zio.internal.Executor executing this fiber
- children
The fiber's forked children. This will only be populated if the fiber is supervised (via ZIO#supervised).
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
done[E, A](exit: ⇒ Exit[E, A]): Fiber[E, A]
A fiber that is done with the specified zio.Exit value.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
fail[E](e: E): Fiber[E, Nothing]
A fiber that has already failed with the specified value.
A fiber that has already failed with the specified value.
- E
error type
- e
failure value
- returns
Fiber[E, Nothing]
failed fiber
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
fromEffect[E, A](io: IO[E, A]): UIO[Fiber[E, A]]
Lifts an zio.IO into a
Fiber
.Lifts an zio.IO into a
Fiber
.- E
error type
- A
type of the fiber
- io
IO[E, A]
to turn into aFiber
- returns
UIO[Fiber[E, A]]
-
final
def
fromFuture[A](thunk: ⇒ Future[A]): Fiber[Throwable, A]
Returns a
Fiber
that is backed by the specifiedFuture
.Returns a
Fiber
that is backed by the specifiedFuture
.- A
type of the
Fiber
- thunk
Future[A]
backing theFiber
- returns
Fiber[Throwable, A]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
interrupt: Fiber[Nothing, Nothing]
A fiber that is already interrupted.
A fiber that is already interrupted.
- returns
Fiber[Nothing, Nothing]
interrupted fiber
-
final
def
interruptAll(fs: Iterable[Fiber[_, _]]): UIO[Unit]
Interrupts all fibers, awaiting their interruption.
Interrupts all fibers, awaiting their interruption.
- fs
Iterable
of fibers to be interrupted- returns
UIO[Unit]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
joinAll(fs: Iterable[Fiber[_, _]]): UIO[Unit]
Joins all fibers, awaiting their completion.
Joins all fibers, awaiting their completion.
- fs
Iterable
of fibers to be joined- returns
UIO[Unit]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
val
never: Fiber[Nothing, Nothing]
A fiber that never fails or succeeds.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
succeed[E, A](a: A): Fiber[E, A]
Returns a fiber that has already succeeded with the specified value.
Returns a fiber that has already succeeded with the specified value.
- E
error type
- A
type of the fiber
- a
success value
- returns
Fiber[E, A]
succeeded fiber
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
val
unit: Fiber[Nothing, Unit]
A fiber that has already succeeded with unit.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )