Re: [whatwg/streams] Add an example of using desiredSize and ready with writable streams (#496)

> @@ -2840,6 +2865,15 @@ lt="WritableStreamDefaultWriter(stream)">new WritableStreamDefaultWriter(<var>st
>  
>  <h5 id="default-writer-desiredSize" attribute for="WritableStreamDefaultWriter" lt="desiredSize">get desiredSize</h5>
>  
> +<div class="note">
> +  The <code>desiredSize</code> getter returns the <a lt="desired size to fill a stream's internal queue">desired size to
> +  fill the stream's internal queue</a>. It can be negative, if the queue is over-full. A <a>producer</a> should use this
> +  information to determine the right amount of data to write.
> +
> +  It will be <emu-val>null</emu-val> if the stream is errored, or zero if the stream is closed. The getter will throw an

> zero if the stream is closed

oh, this is not yet implemented.

---
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/496/files/682092d224c57c5d13add1c2aa680b064e679a9a#r73476236

Received on Thursday, 4 August 2016 07:50:26 UTC