Packages

object Fiber

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Fiber
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class Descriptor(id: Id, status: Status, interruptors: Set[Id], interruptStatus: InterruptStatus, children: UIO[Iterable[Fiber[Any, Any]]], executor: Executor) extends Product with Serializable

    A record containing information about a Fiber.

    A record containing information about a Fiber.

    id

    The fiber's unique identifier

    interruptors

    The set of fibers attempting to interrupt the fiber or its ancestors.

    children

    The fiber's forked children. This will only be populated if the fiber is supervised (via ZIO#supervised).

    executor

    The zio.internal.Executor executing this fiber

  2. final case class Dump(fiberId: Id, fiberName: Option[String], status: Status, trace: ZTrace) extends Serializable with Product
  3. final case class Id(startTimeMillis: Long, seqNumber: Long) extends Serializable with Product

    The identity of a Fiber, described by the time it began life, and a monotonically increasing sequence number generated from an atomic counter.

  4. sealed trait Status extends Serializable with Product

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. final def awaitAll(fs: Iterable[Fiber[Any, Any]]): UIO[Unit]

    Awaits on all fibers to be completed, successfully or not.

    Awaits on all fibers to be completed, successfully or not.

    fs

    Iterable of fibers to be awaited

    returns

    UIO[Unit]

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def collectAll[E, A](fibers: Iterable[Fiber[E, A]]): Fiber[E, List[A]]

    Collects all fibers into a single fiber producing an in-order list of the results.

  8. final def done[E, A](exit: ⇒ Exit[E, A]): Fiber[E, A]

    A fiber that is done with the specified zio.Exit value.

    A fiber that is done with the specified zio.Exit value.

    E

    error type

    A

    type of the fiber

    exit

    zio.Exit value

    returns

    Fiber[E, A]

  9. final val dump: UIO[Iterable[Dump]]

    Collects a complete dump of all fibers.

    Collects a complete dump of all fibers. This could potentially be quite large.

    TODO: Switch to "streaming lazy" version.

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. 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

  13. val fiberName: FiberRef[Option[String]]

    A FiberRef that stores the name of the fiber, which defaults to None.

  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. 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 a Fiber

    returns

    UIO[Fiber[E, A]]

  16. final def fromFuture[A](thunk: ⇒ Future[A]): Fiber[Throwable, A]

    Returns a Fiber that is backed by the specified Future.

    Returns a Fiber that is backed by the specified Future.

    A

    type of the Fiber

    thunk

    Future[A] backing the Fiber

    returns

    Fiber[Throwable, A]

  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def halt[E](cause: Cause[E]): Fiber[E, Nothing]

    Creates a Fiber that is halted with the specified cause.

  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def interruptAll(fs: Iterable[Fiber[Any, Any]]): UIO[Unit]

    Interrupts all fibers, awaiting their interruption.

    Interrupts all fibers, awaiting their interruption.

    fs

    Iterable of fibers to be interrupted

    returns

    UIO[Unit]

  21. final def interruptAllAs(fiberId: Id)(fs: Iterable[Fiber[Any, Any]]): UIO[Unit]

    Interrupts all fibers as by the specified fiber, awaiting their interruption.

    Interrupts all fibers as by the specified fiber, awaiting their interruption.

    fiberId

    The identity of the fiber to interrupt as.

    fs

    Iterable of fibers to be interrupted

    returns

    UIO[Unit]

  22. final def interruptAs(id: Id): Fiber[Nothing, Nothing]

    A fiber that is already interrupted.

    A fiber that is already interrupted.

    returns

    Fiber[Nothing, Nothing] interrupted fiber

  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def joinAll[E](fs: Iterable[Fiber[E, Any]]): IO[E, Unit]

    Joins all fibers, awaiting their _successful_ completion.

    Joins all fibers, awaiting their _successful_ completion. Attempting to join a fiber that has errored will result in a catchable error, _if_ that error does not result from interruption.

    fs

    Iterable of fibers to be joined

    returns

    UIO[Unit]

  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final val never: Fiber[Nothing, Nothing]

    A fiber that never fails or succeeds.

  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final val roots: UIO[Set[Fiber[Any, Any]]]

    The root fibers.

  30. final def succeed[A](a: A): Fiber[Nothing, A]

    Returns a fiber that has already succeeded with the specified value.

    Returns a fiber that has already succeeded with the specified value.

    A

    type of the fiber

    a

    success value

    returns

    Fiber[E, A] succeeded fiber

  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final val unit: Fiber[Nothing, Unit]

    A fiber that has already succeeded with unit.

  34. final def unsafeCurrentFiber(): Option[Fiber[Any, Any]]

    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.

  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  38. object Id extends Serializable
  39. object Status extends Serializable

Deprecated Value Members

  1. final def succeedLazy[E, A](a: ⇒ A): Fiber[E, A]
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use succeed

Inherited from AnyRef

Inherited from Any

Ungrouped