- From: Mattias Buelens <notifications@github.com>
- Date: Thu, 15 Feb 2018 12:26:01 +0000 (UTC)
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 15 February 2018 12:26:24 UTC
The proposed fix has those semantics, that's exactly what `CallPullIfNeeded` achieves. I'll submit a pull request later today that implements this fix, then you can try it out yourself. I feel like these should be the desired semantics. It also matches with the proposed detailed description for the underlying source API in #875: > `pull(controller)` > >A function that is called whenever the stream’s internal queue of chunks becomes not full, i.e. whenever the queue’s desired size becomes positive. **Generally, it will be called repeatedly until the queue reaches its high water mark** (i.e. until the desired size becomes non-positive). > > This function will not be called until start() successfully completes. **Additionally, it will only be called repeatedly if it enqueues at least one chunk or fulfills a BYOB request**; a no-op pull() implementation will not be continually called. -- 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/877#issuecomment-365912401
Received on Thursday, 15 February 2018 12:26:24 UTC