Re: [whatwg/streams] Align WritableStream structure with ReadableStream structure (#488)

>  
>      return this._closedPromise;
>    }
>  
> +  get desiredSize() {
> +    if (IsWritableStreamDefaultWriter(this) === false) {
> +      throw CreateWritableStreamDefaultWriterBrandCheckException('desiredSize');
> +    }
> +
> +    if (this._ownerWritableStream === undefined) {
> +      throw CreateWritableStreamDefaultWriterLockException('desiredSize');
> +    }
> +
> +    return WritableStreamDefaultWriterGetDesiredSize(this)
> +  }
> +
>    get ready() {

Thanks for reminding me. I think it's ok to keep desiredSize getter. waitForDesiredSize(n) or waitForDesiredSizeChange() could be added to give the same power as the pull() signal for underlyingSource to WritableStream users would be good I still think basically. But it doesn't need to be included in this PR, I guess. WDYT?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/488/files/dfa07172203b4c292cfb5a3fc88e821a1db7c3db#r73117020

Received on Tuesday, 2 August 2016 11:11:42 UTC