Re: [streams] WIP: exclusive reader interface (#251)

>  
>      var sourceCancelPromise = helpers.promiseCall(this._onCancel, reason);
>      return sourceCancelPromise.then(() => undefined);
>    }
>  
> +  getReader() {
> +    return new ExclusiveStreamReader(this);

Throws an exception if the state is closed or errored is good, I think. Otherwise, there "closed -> waiting" and "errored->waiting" state transition will be observed.

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

Received on Monday, 15 December 2014 12:04:27 UTC