Re: [streams] Change the model for ReadableStream to have async read() (#296)

>    }
>  
> -  _rejectClosedPromise(reason) {
> -    this._closedPromise_reject(reason);
> -    this._closedPromise_resolve = null;
> -    this._closedPromise_reject = null;
> +  return undefined;
> +}
> +
> +function CreateReadableStreamCloseFunction(stream) {
> +  return () => {
> +    if (stream._state !== 'readable') {
> +      return undefined;

It's out of the main topic of the PR, but don't we want to say "you're making a mistake" when close()-ed twice or more?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/296/files#r26482133

Received on Monday, 16 March 2015 13:12:18 UTC