- From: Domenic Denicola <notifications@github.com>
- Date: Wed, 18 Jan 2017 16:00:35 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 19 January 2017 00:01:19 UTC
Note that the specific case you mention is fine. We don't call ResetQueue when the queue is empty. We call it when closing or erroring the stream. I guess that is a bit weird that sometimes when the queue is empty during the course of operation desiredSize will be nonzero because of floating-point shenanigans, and sometimes it will be reset to 0. We could either accept this, or manually make DequeueValue reset the total size to 0 if the queue becomes empty. -- 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/pull/661#issuecomment-273641045
Received on Thursday, 19 January 2017 00:01:19 UTC