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: FiberId, interrupted: Boolean, interruptStatus: InterruptStatus, superviseStatus: SuperviseStatus, executor: Executor, children: UIO[IndexedSeq[Fiber[_, _]]]) 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

    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

  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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. final def awaitAll(fs: Iterable[Fiber[_, _]]): 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]

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. 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]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. 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

  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. 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]]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def interrupt: Fiber[Nothing, Nothing]

    Permalink

    A fiber that is already interrupted.

    A fiber that is already interrupted.

    returns

    Fiber[Nothing, Nothing] interrupted fiber

  17. final def interruptAll(fs: Iterable[Fiber[_, _]]): 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]

  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def joinAll[E](fs: Iterable[Fiber[E, _]]): 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]

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

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

    Permalink

    A fiber that never fails or succeeds.

  22. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  24. final def succeed[E, A](a: A): Fiber[E, A]

    Permalink

    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

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

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

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

    Permalink

    A fiber that has already succeeded with unit.

  28. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. 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