Re: [streams] Byte stream update, including reference implementation (#361)

> +  constructor(controlledReadableByteStream, underlyingByteSource) {
> +    if (IsReadableByteStream(controlledReadableByteStream) === false) {
> +      throw new TypeError('ReadableByteStreamController can only be constructed with a ReadableByteStream instance');
> +    }
> +
> +    if (controlledReadableByteStream._controller !== undefined) {
> +      throw new TypeError(
> +          'ReadableByteStreamController instances can only be created by the ReadableByteStream constructor');
> +    }
> +
> +    this._controlledReadableByteStream = controlledReadableByteStream;
> +
> +    this._underlyingByteSource = underlyingByteSource;
> +
> +    this._considerReissueUnderlyingByteSourcePullOrPullInto = false;
> +    this._insideUnderlyingByteSource = false;

In ReadableStream these are called, respectively, pullAgain and pulling. Those names seems shorter and accurate enough to maybe use here.

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

Received on Tuesday, 30 June 2015 08:50:47 UTC