A Take[E, A] represents a single take from a queue modeling a stream of values. A Take may be a failure cause Cause[E], an chunk value A or an end-of-stream marker.
Take[E, A]
take
Take
Cause[E]
A
Transforms Take[E, A] to ZIO[R, E, B].
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.
Folds over the failure cause, success value and end-of-stream marker to yield an effect.
Checks if this take is done (Take.end).
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.
Take[E, B]
f
Returns an effect that effectfully "peeks" at the success of this take.