Object/Trait

zio

Fiber

Related Docs: trait Fiber | package zio

Permalink

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

    Permalink

    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

    Permalink
  3. final case class Id(startTimeMillis: Long, seqNumber: Long) extends Serializable with Product

    Permalink

    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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Id extends Serializable

    Permalink
  5. object Status extends Serializable

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. final def awaitAll(fs: Iterable[Fiber[Any, Any]]): UIO[Unit]

    Permalink

    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]

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def collectAll[E, A](fibers: Iterable[Fiber[E, A]]): Fiber[E, List[A]]

    Permalink

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

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

    Permalink

    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]

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

    Permalink

    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.

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def fail[E](e: E): Fiber[E, Nothing]

    Permalink

    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

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

    Permalink

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

  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def fromEffect[E, A](io: IO[E, A]): UIO[Fiber[E, A]]

    Permalink

    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]]

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

    Permalink

    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]

  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def halt[E](cause: Cause[E]): Fiber[E, Nothing]

    Permalink

    Creates a Fiber that is halted with the specified cause.

  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def interruptAll(fs: Iterable[Fiber[Any, Any]]): UIO[Unit]

    Permalink

    Interrupts all fibers, awaiting their interruption.

    Interrupts all fibers, awaiting their interruption.

    fs

    Iterable of fibers to be interrupted

    returns

    UIO[Unit]

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

    Permalink

    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]

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

    Permalink

    A fiber that is already interrupted.

    A fiber that is already interrupted.

    returns

    Fiber[Nothing, Nothing] interrupted fiber

  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. final def joinAll[E](fs: Iterable[Fiber[E, Any]]): IO[E, Unit]

    Permalink

    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]

  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final val never: Fiber[Nothing, Nothing]

    Permalink

    A fiber that never fails or succeeds.

  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final val roots: UIO[Set[Fiber[Any, Any]]]

    Permalink

    The root fibers.

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

    Permalink

    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

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. final val unit: Fiber[Nothing, Unit]

    Permalink

    A fiber that has already succeeded with unit.

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

    Permalink

    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.

  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use succeed

Inherited from AnyRef

Inherited from Any

Ungrouped