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]]
Inherits values from all FiberRef instances into current fiber.
Inherits values from all FiberRef instances into current fiber. This will resume immediately.
UIO[Unit]
Interrupts the fiber with no specified reason.
Interrupts the fiber with no specified reason. If the fiber has already terminated, either successfully or with error, this will resume immediately. Otherwise, it will resume when the fiber terminates.
UIO[Exit, E, A]]
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]]]
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
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
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 errored will result in a catchable error, _if_ that error does not result from interruption.
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
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.
Interrupt call on such a fiber interrupts both (this
and that
)
fibers in sequential order.
error type
type of the fiber
fiber to fall back to
Fiber[E1, A1]
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.
Converts this fiber into a scala.concurrent.Future, translating any errors to java.lang.Throwable with the specified conversion function.
function to the error into a Throwable
UIO[Future[A]]
Converts this fiber into a zio.ZManaged.
Converts this fiber into a zio.ZManaged. Fiber is interrupted on release.
ZManaged[Any, Nothing, Fiber[E, 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 fiber is a lightweight thread of execution that never consumes more than a whole thread (but may consume much less, depending on contention). Fibers are spawned by forking
IO
actions, which, conceptually at least, runs them concurrently with the parentIO
action.Fibers can be joined, yielding their result other fibers, or interrupted, which terminates the fiber with a runtime error.
Fork-Join Identity: fork >=> join = id