- From: Ben Kelly <notifications@github.com>
- Date: Mon, 03 Aug 2015 08:15:37 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Monday, 3 August 2015 15:16:05 UTC
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