Re: [streams] How will ReadableByteStream work with seekable resources? (#253)

What would be most helpful for me to understand for all these proposed ideas is, how would a consumer---given a (Feedable?)ReadableByteStream from the UA---use the stream.

For example, if we took a drastic approach and overhauled everything so that `readInto` and `read` became async, it would be pretty clear:

```js
// Passes ab, 0, CHUNK_SIZE to fread, which uses it
rbs.readInto(ab, 0, CHUNK_SIZE).then(...)

// Uses the default chunk size, currently specified by the stream constructor (although we could allow it to be specified by consumers, hmm).
rbs.read().then(...)
```

What would it look like for the `feedBuffer` and `setAllocator` situations?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/253#issuecomment-73902956

Received on Wednesday, 11 February 2015 15:45:12 UTC