Re: [streams] Real time source and skipping (#383)

Would it be enough to provide an "opportunistic read()"?  This call would return any enqueued chunks, but not trigger a new pull on the underlying stream.

When your downstream consumer needs its next frame, you could then do opportunistic reads until the queue is empty to get the last available value.  If no values are available at all, then you do a full read() to trigger a pull.

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

Received on Monday, 3 August 2015 15:16:05 UTC