- From: Takeshi Yoshino <notifications@github.com>
- Date: Tue, 10 Feb 2015 07:18:36 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Tuesday, 10 February 2015 15:19:11 UTC
> The other question is what we want to do for methods. We could make them return fresh promises each time. `cancel(reason)` being called during `"closed"` or `"errored"` is just a mistake. I don't care whether it would return something stable or not. Same about `ws.abort(reason)` on `"closed"` or `"errored"` WritableStream, and `ws.close()` on an `"errored"` WritableStream, and `ws.write()` on an `"errored"` WritableStream. IIRC, I've been thinking that they should just return a promise rejected with a TypeError indicating invalid state error. Sorry if I'm missing something discussed in the past. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/266#issuecomment-73716393
Received on Tuesday, 10 February 2015 15:19:11 UTC