Class/Object

zio.internal

FiberRuntime

Related Docs: object FiberRuntime | package internal

Permalink

final class FiberRuntime[E, A] extends Internal[E, A] with FiberRunnable

Self Type
FiberRuntime[E, A]
Linear Supertypes
FiberRunnable, Runnable, Internal[E, A], Fiber.Runtime[E, A], Fiber[E, A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FiberRuntime
  2. FiberRunnable
  3. Runnable
  4. Internal
  5. Runtime
  6. Fiber
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FiberRuntime(fiberId: FiberId.Runtime, fiberRefs0: FiberRefs, runtimeFlags0: RuntimeFlags)

    Permalink

Type Members

  1. type Erased = ZIO[Any, Any, Any]

    Permalink
  2. trait UnsafeAPI extends AnyRef

    Permalink
    Definition Classes
    Runtime

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 *>[E1 >: E, B](that: Fiber[E1, B]): Synthetic[E1, B]

    Permalink

    Same as zip but discards the output of the left hand side.

    Same as zip but discards the output of the left hand side.

    E1

    error type

    B

    type of the fiber

    that

    fiber to be zipped

    returns

    Fiber[E1, B] combined fiber

    Definition Classes
    Fiber
  4. final def <*[E1 >: E, B](that: Fiber[E1, B]): Synthetic[E1, A]

    Permalink

    Same as zip but discards the output of the right hand side.

    Same as zip but discards the output of the right hand side.

    E1

    error type

    B

    type of the fiber

    that

    fiber to be zipped

    returns

    Fiber[E1, A] combined fiber

    Definition Classes
    Fiber
  5. final def <*>[E1 >: E, B](that: ⇒ Fiber[E1, B])(implicit zippable: Zippable[A, B]): Synthetic[E1, Out]

    Permalink

    Zips this fiber and the specified fiber together, producing a tuple of their output.

    Zips this fiber and the specified fiber together, producing a tuple of their output.

    E1

    error type

    B

    type of that fiber

    that

    fiber to be zipped

    returns

    Fiber[E1, (A, B)] combined fiber

    Definition Classes
    Fiber
  6. final def <+>[E1 >: E, B](that: ⇒ Fiber[E1, B])(implicit ev: CanFail[E]): Synthetic[E1, Either[A, B]]

    Permalink

    A symbolic alias for orElseEither.

    A symbolic alias for orElseEither.

    Definition Classes
    Fiber
  7. def <>[E1, A1 >: A](that: ⇒ Fiber[E1, A1])(implicit ev: CanFail[E]): Synthetic[E1, A1]

    Permalink

    A symbolic alias for orElse.

    A symbolic alias for orElse.

    Definition Classes
    Fiber
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. final def as[B](b: ⇒ B): Synthetic[E, B]

    Permalink

    Maps the output of this fiber to the specified constant.

    Maps the output of this fiber to the specified constant.

    B

    type of the fiber

    b

    constant

    returns

    Fiber[E, B] fiber mapped to constant

    Definition Classes
    Fiber
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def ask[A](f: (Unsafe) ⇒ (FiberRuntime[_, _], Status) ⇒ A)(implicit trace: Trace): UIO[A]

    Permalink

    Returns an effect that will contain information computed from the fiber state and status while running on the fiber.

    Returns an effect that will contain information computed from the fiber state and status while running on the fiber.

    This allows the outside world to interact safely with mutable fiber state without locks or immutable data.

  12. def await(implicit trace: Trace): UIO[Exit[E, A]]

    Permalink

    Awaits the fiber, which suspends the awaiting fiber until the result of the fiber has been determined.

    Awaits the fiber, which suspends the awaiting fiber until the result of the fiber has been determined.

    returns

    UIO[Exit[E, A]]

    Definition Classes
    FiberRuntimeFiber
  13. def children(implicit trace: Trace): UIO[Chunk[FiberRuntime[_, _]]]

    Permalink

    Retrieves the immediate children of the fiber.

    Retrieves the immediate children of the fiber.

    Definition Classes
    FiberRuntimeFiber
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. final def dump(implicit trace: Trace): UIO[Dump]

    Permalink

    Generates a fiber dump.

    Generates a fiber dump.

    Definition Classes
    Runtime
  16. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def fiberRefs(implicit trace: Trace): UIO[FiberRefs]

    Permalink
    Definition Classes
    FiberRuntimeRuntime
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def fold[Z](runtime: (Fiber.Runtime[E, A]) ⇒ Z, synthetic: (Synthetic[E, A]) ⇒ Z): Z

    Permalink

    Folds over the runtime or synthetic fiber.

    Folds over the runtime or synthetic fiber.

    Definition Classes
    Fiber
  21. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def id: FiberId.Runtime

    Permalink

    The identity of the fiber.

    The identity of the fiber.

    Definition Classes
    FiberRuntimeRuntimeFiber
  24. def inheritAll(implicit trace: Trace): UIO[Unit]

    Permalink

    Inherits values from all FiberRef instances into current fiber.

    Inherits values from all FiberRef instances into current fiber. This will resume immediately.

    returns

    UIO[Unit]

    Definition Classes
    FiberRuntimeFiber
  25. final def interrupt(implicit trace: Trace): UIO[Exit[E, A]]

    Permalink

    Interrupts the fiber from whichever fiber is calling this method.

    Interrupts the fiber from whichever fiber is calling this method. If the fiber has already exited, the returned effect will resume immediately. Otherwise, the effect will resume when the fiber exits.

    returns

    UIO[Exit, E, A]]

    Definition Classes
    Fiber
  26. final def interruptAs(fiberId: FiberId)(implicit trace: Trace): UIO[Exit[E, A]]

    Permalink

    Interrupts the fiber as if interrupted from the specified fiber.

    Interrupts the fiber as if interrupted from the specified fiber. If the fiber has already exited, the returned effect will resume immediately. Otherwise, the effect will resume when the fiber exits.

    returns

    UIO[Exit, E, A]]

    Definition Classes
    Fiber
  27. def interruptAsFork(fiberId: FiberId)(implicit trace: Trace): UIO[Unit]

    Permalink

    In the background, interrupts the fiber as if interrupted from the specified fiber.

    In the background, interrupts the fiber as if interrupted from the specified fiber. If the fiber has already exited, the returned effect will resume immediately. Otherwise, the effect will resume when the fiber exits.

    returns

    UIO[Exit, E, A]]

    Definition Classes
    FiberRuntimeFiber
  28. final def interruptFork(implicit trace: Trace): UIO[Unit]

    Permalink

    Interrupts the fiber from whichever fiber is calling this method.

    Interrupts the fiber from whichever fiber is calling this method. The interruption will happen in a separate daemon fiber, and the returned effect will always resume immediately without waiting.

    returns

    UIO[Unit]

    Definition Classes
    Fiber
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. final def join(implicit trace: Trace): IO[E, A]

    Permalink

    Joins the fiber, which suspends the joining fiber until the result of the fiber has been determined.

    Joins the fiber, which suspends the joining fiber until the result of the fiber has been determined. Attempting to join a fiber that has erred will result in a catchable error. Joining an interrupted fiber will result in an "inner interruption" of this fiber, unlike interruption triggered by another fiber, "inner interruption" can be caught and recovered.

    returns

    IO[E, A]

    Definition Classes
    Fiber
  31. def location: Trace

    Permalink

    The location the fiber was forked from.

    The location the fiber was forked from.

    Definition Classes
    FiberRuntime → FiberRunnable → Runtime
  32. final def map[B](f: (A) ⇒ B): Synthetic[E, B]

    Permalink

    Maps over the value the Fiber computes.

    Maps over the value the Fiber computes.

    B

    result type of f

    f

    mapping function

    returns

    Fiber[E, B] mapped fiber

    Definition Classes
    Fiber
  33. final def mapFiber[E1 >: E, B](f: (A) ⇒ Fiber[E1, B])(implicit trace: Trace): UIO[Fiber[E1, B]]

    Permalink

    Passes the success of this fiber to the specified callback, and continues with the fiber that it returns.

    Passes the success of this fiber to the specified callback, and continues with the fiber that it returns.

    B

    The success value.

    f

    The callback.

    returns

    Fiber[E, B] The continued fiber.

    Definition Classes
    Fiber
  34. final def mapZIO[E1 >: E, B](f: (A) ⇒ IO[E1, B]): Synthetic[E1, B]

    Permalink

    Effectually maps over the value the fiber computes.

    Effectually maps over the value the fiber computes.

    Definition Classes
    Fiber
  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  38. def orElse[E1, A1 >: A](that: ⇒ Fiber[E1, A1])(implicit ev: CanFail[E]): Synthetic[E1, A1]

    Permalink

    Returns a fiber that prefers this fiber, but falls back to the that one when this one fails.

    Returns a fiber that prefers this fiber, but falls back to the that one when this one fails. Interrupting the returned fiber will interrupt both fibers, sequentially, from left to right.

    E1

    error type

    A1

    type of the other fiber

    that

    fiber to fall back to

    returns

    Fiber[E1, A1]

    Definition Classes
    Fiber
  39. final def orElseEither[E1, B](that: ⇒ Fiber[E1, B]): Synthetic[E1, Either[A, B]]

    Permalink

    Returns a fiber that prefers this fiber, but falls back to the that one when this one fails.

    Returns a fiber that prefers this fiber, but falls back to the that one when this one fails. Interrupting the returned fiber will interrupt both fibers, sequentially, from left to right.

    E1

    error type

    B

    type of the other fiber

    that

    fiber to fall back to

    returns

    Fiber[E1, B]

    Definition Classes
    Fiber
  40. def poll(implicit trace: Trace): UIO[Option[Exit[E, A]]]

    Permalink

    Tentatively observes the fiber, but returns immediately if it is not already done.

    Tentatively observes the fiber, but returns immediately if it is not already done.

    returns

    UIO[Option[Exit, E, A]]]

    Definition Classes
    FiberRuntimeFiber
  41. def run(): Unit

    Permalink
    Definition Classes
    FiberRuntime → Runnable
  42. def runtimeFlags(implicit trace: Trace): UIO[RuntimeFlags]

    Permalink
    Definition Classes
    FiberRuntimeRuntime
  43. def scope: FiberScope

    Permalink
  44. final def scoped(implicit trace: Trace): ZIO[Scope, Nothing, Fiber[E, A]]

    Permalink

    Converts this fiber into a scoped zio.ZIO.

    Converts this fiber into a scoped zio.ZIO. The fiber is interrupted when the scope is closed.

    Definition Classes
    Fiber
  45. def status(implicit trace: Trace): UIO[Status]

    Permalink

    The status of the fiber.

    The status of the fiber.

    Definition Classes
    FiberRuntimeRuntime
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. final def toFuture(implicit ev: IsSubtypeOfError[E, Throwable], trace: Trace): UIO[CancelableFuture[A]]

    Permalink

    Converts this fiber into a scala.concurrent.Future.

    Converts this fiber into a scala.concurrent.Future.

    ev

    implicit witness that E is a subtype of Throwable

    returns

    UIO[Future[A]]

    Definition Classes
    Fiber
  48. final def toFutureWith(f: (E) ⇒ Throwable)(implicit trace: Trace): UIO[CancelableFuture[A]]

    Permalink

    Converts this fiber into a scala.concurrent.Future, translating any errors to java.lang.Throwable with the specified conversion function, using Cause.squashTraceWith

    Converts this fiber into a scala.concurrent.Future, translating any errors to java.lang.Throwable with the specified conversion function, using Cause.squashTraceWith

    f

    function to the error into a Throwable

    returns

    UIO[Future[A]]

    Definition Classes
    Fiber
  49. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  50. def trace(implicit trace: Trace): UIO[StackTrace]

    Permalink

    The trace of the fiber.

    The trace of the fiber.

    Definition Classes
    FiberRuntimeRuntime
  51. final def unit: Synthetic[E, Unit]

    Permalink

    Maps the output of this fiber to ().

    Maps the output of this fiber to ().

    returns

    Fiber[E, Unit] fiber mapped to ()

    Definition Classes
    Fiber
  52. def unsafe: UnsafeAPI

    Permalink
    Definition Classes
    FiberRuntimeRuntime
  53. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def zip[E1 >: E, B](that: ⇒ Fiber[E1, B])(implicit zippable: Zippable[A, B]): Synthetic[E1, Out]

    Permalink

    Named alias for <*>.

    Named alias for <*>.

    E1

    error type

    B

    type of that fiber

    that

    fiber to be zipped

    returns

    Fiber[E1, (A, B)] combined fiber

    Definition Classes
    Fiber
  57. final def zipLeft[E1 >: E, B](that: Fiber[E1, B]): Synthetic[E1, A]

    Permalink

    Named alias for <*.

    Named alias for <*.

    E1

    error type

    B

    type of the fiber

    that

    fiber to be zipped

    returns

    Fiber[E1, A] combined fiber

    Definition Classes
    Fiber
  58. final def zipRight[E1 >: E, B](that: Fiber[E1, B]): Synthetic[E1, B]

    Permalink

    Named alias for *>.

    Named alias for *>.

    E1

    error type

    B

    type of the fiber

    that

    fiber to be zipped

    returns

    Fiber[E1, B] combined fiber

    Definition Classes
    Fiber
  59. final def zipWith[E1 >: E, B, C](that: ⇒ Fiber[E1, B])(f: (A, B) ⇒ C): Synthetic[E1, C]

    Permalink

    Zips this fiber with the specified fiber, combining their results using the specified combiner function.

    Zips this fiber with the specified fiber, combining their results using the specified combiner function. Both joins and interruptions are performed in sequential order from left to right.

    E1

    error type

    B

    type of that fiber

    C

    type of the resulting fiber

    that

    fiber to be zipped

    f

    function to combine the results of both fibers

    returns

    Fiber[E1, C] combined fiber

    Definition Classes
    Fiber

Inherited from FiberRunnable

Inherited from Runnable

Inherited from Internal[E, A]

Inherited from Fiber.Runtime[E, A]

Inherited from Fiber[E, A]

Inherited from AnyRef

Inherited from Any

Ungrouped