Converts a ReadableStream into a callback pattern.
The input ReadableStream.
A function that will be called on each new byte chunk in the stream.
Optional
A promise that will be resolved when the stream closes.
Converts a ReadableStream into a callback pattern.