streamWithBackpressure
streamWithBackpressure(
stream,bufferSize):IRChatStream
Defined in: streaming.ts:690
Add backpressure control to stream.
Buffers chunks and allows consumer to control flow.
Parameters
Section titled “Parameters”stream
Section titled “stream”Original stream
bufferSize
Section titled “bufferSize”number = 10
Maximum buffer size before pausing
Returns
Section titled “Returns”Stream with backpressure control