- From: zenparsing <notifications@github.com>
- Date: Thu, 05 Mar 2015 14:26:34 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Thursday, 5 March 2015 22:27:06 UTC
@domenic If you absolutely have to return an output view for each view that was put in, could you just return an empty view with `done: false` for each input view, and then a final iteration with `done: true` and `value: undefined`? It's a bit of a corner case, anyway (I think). Request queueing is sometimes useful in async iterators. For example, you want to send a bunch of things to a sink and then just await the final write, or if you want to send a "return" signal (to close the iterator) regardless of whether there is an in-flight "next" request. Also, if you reject when there's an in-flight request, then you open up some non-deterministic failure patterns. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/253#issuecomment-77465830
Received on Thursday, 5 March 2015 22:27:06 UTC