forever package:conduit
Run a consuming conduit repeatedly, only stopping when there is no
more data available from upstream.
Run a consuming conduit repeatedly, only stopping when there is no
more data available from upstream.
In contrast to
peekForever, this function will ignore empty
chunks of data. So for example, if a stream of data contains an empty
ByteString, it is still treated as empty, and the consuming
function is not called.
Wait for input forever, calling the given inner component for each
piece of new input.
This function is provided as a convenience for the common pattern of
awaiting input, checking if it's Just and then
looping.
Since 0.5.0
Wait for input forever, calling the given inner Pipe for each
piece of new input. Returns the upstream result type.
Since 0.5.0