Re: [whatwg/streams] ReadableStream.prototype.arrayBuffer() (#1019)

A more generic method might be `stream.toArray()` which returns a promise for an array of chunks. (If https://github.com/tc39/proposal-iterator-helpers lands this would basically become an alias for `stream.values().toArray()`, although potentially easier to optimize since it's more direct.)

If we had that, then we'd just need a way of turning an array of Uint8Arrays into a single Uint8Array. Surprisingly I can't find any easy way to do this, especially not performantly. So, maybe that is not the right path.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1019#issuecomment-542046723

Received on Tuesday, 15 October 2019 05:43:40 UTC