Transforms Take[E, A]
to ZIO[R, E, B]
.
Folds over the failure cause, success value and end-of-stream marker to yield a value.
Effectful version of Take#fold.
Effectful version of Take#fold.
Folds over the failure cause, success value and end-of-stream marker to yield an effect.
Checks if this take
is done (Take.end
).
Checks if this take
is a failure.
Checks if this take
is a success.
Transforms Take[E, A]
to Take[E, B]
by applying function f
.
Returns an effect that effectfully "peeks" at the success of this take.
A
Take[E, A]
represents a singletake
from a queue modeling a stream of values. ATake
may be a failure causeCause[E]
, an chunk valueA
or an end-of-stream marker.