- From: Adam Rice <notifications@github.com>
- Date: Mon, 04 Feb 2019 20:52:46 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 5 February 2019 04:53:08 UTC
Some time ago I moved most of the state checks until after the call to `strategy.size()`. This avoids having to repeat the checks in case `strategy.size()` changed something. But it also means that `strategy.size()` can be called after the stream is closed. Or it could, until I added ClearAlgorithms(). ClearAlgorithms() was not intended to have any side-effects, but this particular side-effect seems acceptable. I will have to write a test for it, obviously. -- 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/982#issuecomment-460512471
Received on Tuesday, 5 February 2019 04:53:08 UTC