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;

Hmm. I think you are right. Underlying source should be more careful than this. Open a new issue?

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

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