Signals that there will be no more data forthcoming.
Signals that there will be no more data forthcoming. The Iteratee
must now produce its final value.
The output of this Iteratee
.
Consume one piece of input.
Consume one piece of input. If the computation is not finished, a new Iteratee
is returned.
The data to consume.
Either a new Iteratee
or the final result.
Produces an Iteratee
that transforms the final result of this one.
Produces an Iteratee
that transforms the final result of this one.
The new final type.
The function to apply to the final value.
A new iteratee which will eventually return a value of type O2
.
An
Iteratee
represents a computation over a stream of data.At each step, the
Iteratee
receives a stream element of typeI
. It can then either signal that processing the stream should continue by returning aLeft
containing anotherIteratee
of the same type, or that processing is finished by returning a value of typeO
.Classical iteratees always work on infinite streams. These, however, can be used on finite ones. At the end of the stream, if the
Iteratee
has not already signalled that processing should terminate, itsendOfInput
method is called to produce the final value.