Convert a single use callback-y API to a single-element stream.
Function for converting a multiple-use callback to a Stream
.
Function for converting a multiple-use callback to a Stream
.
The output Stream
has queue-like semantics--chunks added to the queue
accumulate until they are consumed in LIFO order, and in the event of
multiple consumers, chunks will be delivered to at most one consumer.
Function for converting a multiple-use callback to a Stream
.
Function for converting a multiple-use callback to a Stream
.
The output Stream
has signal-like semantics--chunks are retained only
until the next produced chunk arrives, and may not be seen by any consumer
depending on the consumer's rate of processing. In the event of multiple
consumers, chunks will be delivered to potentially all consumers.