A way to pull data from a running Sink.
A way to pull data from a running Sink. Use with Sink.asyncPuller
.
Generates backpressure using a BoundedAsyncQueue until data is pulled.
A sink that discards its output and calculates nothing.
Pass the results of the stream to this consumer.
Pass the results of the stream to this consumer. Intended to be used together with Source.driven
.
Creates a Sink that will wait for the future
to complete and then feed data into the Sink it yields.
Extracts the single element of the input stream as the result.
Extracts the single element of the input stream as the result.
If the stream is empty, fails with NoSuchElementException. If the stream contains more than one element, fails with IllegalArgumentException.