Reduces chunks in to one accumulator. Once the stream is cancelled, the accumulator will be queued.
Optional
accumulate:function
--a-------b-------c-----|reduce([], (acc, chunk) => [...acc, chunk])------------------------[a,b,c]-| Copy
--a-------b-------c-----|reduce([], (acc, chunk) => [...acc, chunk])------------------------[a,b,c]-|
Generated using TypeDoc
Reduces chunks in to one accumulator. Once the stream is cancelled, the accumulator will be queued.