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.
UIO[Exit[E, A]]
Retrieves the immediate children of the fiber.
Retrieves the immediate children of the fiber.
The identity of the fiber.
Inherits values from all FiberRef instances into current fiber.
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.
UIO[Exit, E, A]]
The location the fiber was forked from.
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.
UIO[Option[Exit, E, A]]]
The status of the fiber.
The trace of the fiber.
Same as zip
but discards the output of the left hand side.
Same as zip
but discards the output of the left hand side.
error type
type of the fiber
fiber to be zipped
Fiber[E1, B]
combined fiber
Same as zip
but discards the output of the right hand side.
Same as zip
but discards the output of the right hand side.
error type
type of the fiber
fiber to be zipped
Fiber[E1, A]
combined fiber
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.
error type
type of that fiber
fiber to be zipped
Fiber[E1, (A, B)]
combined fiber
A symbolic alias for orElseEither
.
A symbolic alias for orElseEither
.
A symbolic alias for orElse
.
A symbolic alias for orElse
.
Maps the output of this fiber to the specified constant.
Maps the output of this fiber to the specified constant.
type of the fiber
constant
Fiber[E, B]
fiber mapped to constant
Generates a fiber dump.
Folds over the runtime or synthetic fiber.
Folds over the runtime or synthetic fiber.
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.
UIO[Exit, E, A]]
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.
UIO[Exit, E, A]]
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.
UIO[Unit]
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.
IO[E, A]
Maps over the value the Fiber computes.
Maps over the value the Fiber computes.
result type of f
mapping function
Fiber[E, B]
mapped fiber
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.
The success value.
The callback.
Fiber[E, B]
The continued fiber.
Effectually maps over the value the fiber computes.
Effectually maps over the value the fiber computes.
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.
error type
type of the other fiber
fiber to fall back to
Fiber[E1, A1]
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.
error type
type of the other fiber
fiber to fall back to
Fiber[E1, B]
Converts this fiber into a scoped zio.ZIO.
Converts this fiber into a scala.concurrent.Future.
Converts this fiber into a scala.concurrent.Future.
implicit witness that E is a subtype of Throwable
UIO[Future[A]]
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
function to the error into a Throwable
UIO[Future[A]]
Maps the output of this fiber to ()
.
Maps the output of this fiber to ()
.
Fiber[E, Unit]
fiber mapped to ()
Named alias for <*>
.
Named alias for <*>
.
error type
type of that fiber
fiber to be zipped
Fiber[E1, (A, B)]
combined fiber
Named alias for <*
.
Named alias for <*
.
error type
type of the fiber
fiber to be zipped
Fiber[E1, A]
combined fiber
Named alias for *>
.
Named alias for *>
.
error type
type of the fiber
fiber to be zipped
Fiber[E1, B]
combined fiber
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.
error type
type of that fiber
type of the resulting fiber
fiber to be zipped
function to combine the results of both fibers
Fiber[E1, C]
combined fiber
A runtime fiber that is executing an effect. Runtime fibers have an identity and a trace.