- From: Takeshi Yoshino <notifications@github.com>
- Date: Tue, 25 Nov 2014 22:56:32 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Wednesday, 26 November 2014 06:57:01 UTC
Re: WritableStream, I agree with you. It can also be fulfill-only. `.closed` can give us `storedError`. > i.e. when the stream begins closing, or is closed. Good point. `.ready` is rejected on transition to `"closing"` and again (replaced with a rejected promise) on transition to `"errored"`. If we make this fulfill-only, we cannot distinguish between them using `.ready` (with the current behavior, they're rejected with different errors). Maybe that's the only change of capability, and is not so important, I think. We can say the same about `ReadableStream`'s `.ready`. With the current behavior, we can know that the readable stream became readable once before we check `state` in the fulfillment callback to see it being `"errored"`. I'd say that this is also not so important functionality. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/245#issuecomment-64522371
Received on Wednesday, 26 November 2014 06:57:01 UTC