Given a resource and a handler, treat the resource as a stream,
pushing items from the stream into the handler
until either
the handler returns a result or an EOF is reached.
Given a resource and a handler, treat the resource as a stream,
pushing items from the stream into the handler
until either
the handler returns a result or an EOF is reached.
The result type
A resource
A handler for items from the resource's stream
A result returned by the handler
Helper method for implementing custom ConsumableLike
instances.
Helper method for implementing custom ConsumableLike
instances.
This will push items from the iterator into the handler until
either the iterator runs out of items, or the handler is finished.
If the iterator finishes before the handler, it will tell the
handler to handle an "End" event in order to obtain a final result.
Adapter typeclass for push-style processingof a stream-like resource.
Handler for pull-style processing