- From: Jake Archibald <notifications@github.com>
- Date: Tue, 18 Feb 2020 01:19:12 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 18 February 2020 09:19:27 UTC
How about: * `array()` - Array of chunks * `blob(BlobPropertyBag)` - Blob. Rejects and cancels stream if any chunks are not BlobPart. * `arrayBuffer({ into })` - Rejects and cancels stream if any chunks are not buffer sources, or if `into` is provided and isn't big enough to hold the data. Resolves with an arraybuffer, which will be a slice of `into` if it's provided. Maybe we can look at `text()` later, but `(await stream.array()).join('')` doesn't seem too bad. -- 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-587358358
Received on Tuesday, 18 February 2020 09:19:27 UTC