Object/Class

zio

Fiber

Related Docs: class Fiber | package zio

Permalink

object Fiber extends FiberPlatformSpecific

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

Type Members

  1. sealed abstract class Descriptor extends AnyRef

    Permalink
  2. sealed abstract class Dump extends Serializable

    Permalink
  3. sealed abstract class Runtime[+E, +A] extends Fiber[E, A]

    Permalink

    A runtime fiber that is executing an effect.

    A runtime fiber that is executing an effect. Runtime fibers have an identity and a trace.

  4. sealed abstract class Status extends Serializable with Product

    Permalink
  5. sealed abstract class Synthetic[+E, +A] extends Fiber[E, A]

    Permalink

    A synthetic fiber that is created from a pure value or that combines existing fibers.

  6. type Id = FiberId

    Permalink

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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use FiberId

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 Descriptor

    Permalink
  5. object Dump extends Serializable

    Permalink
  6. object Status extends Serializable

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def awaitAll(fs: Iterable[Fiber[Any, Any]])(implicit trace: ZTraceElement): 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]

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def collectAll[E, A, Collection[+Element] <: Iterable[Element]](fibers: Collection[Fiber[E, A]])(implicit bf: zio.BuildFrom[Collection[Fiber[E, A]], A, Collection[A]]): Synthetic[E, Collection[A]]

    Permalink

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

  11. def done[E, A](exit: ⇒ Exit[E, A]): Synthetic[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]

  12. def dump(fibers: Runtime[_, _]*)(implicit trace: ZTraceElement): UIO[Iterable[Dump]]

    Permalink

    Collects a complete dump of the specified fibers and all children of the fibers.

  13. def dumpStr(fibers: Runtime[_, _]*)(implicit trace: ZTraceElement): UIO[String]

    Permalink

    Collects a complete dump of the specified fibers and all children of the fibers and renders it as a string.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def fail[E](e: E): Synthetic[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

  17. def failCause[E](cause: Cause[E]): Synthetic[E, Nothing]

    Permalink

    Creates a Fiber that has already failed with the specified cause.

  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def fromCompletionStage[A](thunk: ⇒ CompletionStage[A]): Fiber[Throwable, A]

    Permalink
    Definition Classes
    FiberPlatformSpecific
  20. def fromFuture[A](thunk: ⇒ Future[A])(implicit trace: ZTraceElement): Synthetic[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]

  21. def fromFutureJava[A](thunk: ⇒ Future[A]): Fiber[Throwable, A]

    Permalink

    WARNING: this uses the blocking Future#get, consider using fromCompletionStage

    WARNING: this uses the blocking Future#get, consider using fromCompletionStage

    Definition Classes
    FiberPlatformSpecific
  22. def fromZIO[E, A](io: IO[E, A])(implicit trace: ZTraceElement): UIO[Synthetic[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]]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def interruptAll(fs: Iterable[Fiber[Any, Any]])(implicit trace: ZTraceElement): 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]

  26. def interruptAllAs(fiberId: FiberId)(fs: Iterable[Fiber[Any, Any]])(implicit trace: ZTraceElement): 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]

  27. def interruptAs(id: FiberId): Synthetic[Nothing, Nothing]

    Permalink

    A fiber that is already interrupted.

    A fiber that is already interrupted.

    returns

    Fiber[Nothing, Nothing] interrupted fiber

  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def joinAll[E](fs: Iterable[Fiber[E, Any]])(implicit trace: ZTraceElement): 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 erred will result in a catchable error, _if_ that error does not result from interruption.

    fs

    Iterable of fibers to be joined

    returns

    UIO[Unit]

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

    Permalink
    Definition Classes
    AnyRef
  31. val never: Synthetic[Nothing, Nothing]

    Permalink

    A fiber that never fails or succeeds.

  32. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  34. def putDumpStr(label: String, fibers: Runtime[_, _]*)(implicit trace: ZTraceElement): ZIO[Console, IOException, Unit]

    Permalink

    Collects a complete dump of the specified fibers and all children of the fibers and renders it to the console.

  35. def succeed[A](a: A): Synthetic[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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  38. val unit: Synthetic[Nothing, Unit]

    Permalink

    A fiber that has already succeeded with unit.

  39. 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.

  40. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. val Id: FiberId.type

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use FiberId

  2. def fromEffect[E, A](io: IO[E, A])(implicit trace: ZTraceElement): UIO[Synthetic[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]]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromZIO

  3. def halt[E](cause: Cause[E])(implicit trace: ZTraceElement): Synthetic[E, Nothing]

    Permalink

    Creates a Fiber that is halted with the specified cause.

    Creates a Fiber that is halted with the specified cause.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use failCause

Inherited from FiberPlatformSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped