Represents a failure take
with a Cause[E]
.
Represents take
with value of type A
retrieved from queue modeling stream.
Represents end of stream marker.
Creates a Take
from an effect.
Creates effect from Pull[R, E, A]
that does not fail, but succeeds with the Take[E, A]
.
Creates effect from Pull[R, E, A]
that does not fail, but succeeds with the Take[E, A]
.
Error from stream when pulling is converted to Take.Fail
, end of stream to Take.End
.
Creates new effect with value Option[A]
or error E
from effect returning Take[E, A]
.
Creates new effect with value Option[A]
or error E
from effect returning Take[E, A]
.
Result of stream reading is mapped to effect value as follows: terminated stream is
mapped to None
, value a
read from stream is mapped to Some(a)
.
In case of error from stream reading, effect with E
is returned.