- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 08 Feb 2018 08:08:24 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 8 February 2018 16:09:18 UTC
domenic commented on this pull request.
> @@ -4501,7 +4643,42 @@ aoid="TransformStreamDefaultSourcePullAlgorithm" nothrow>TransformStreamDefaultS
<h2 id="other-stuff">Other Stream APIs and Operations</h2>
-<h3 id="blqs-class" interface lt="ByteLengthQueuingStrategy">Class <code>ByteLengthQueuingStrategy</code></h3>
+<h3 id="qs">Queuing Strategies</h3>
+
+<h4 id="qs-api">The Queuing Strategy API</h4>
+
+The {{ReadableStream()}}, {{WritableStream()}}, and {{TransformStream()}} constructors all accept at least one argument
+representing an appropriate <a>queuing strategy</a> for the stream being created. Such objects contain the following
+properties:
+
+<dl>
+ <dt><dfn method for="queuing strategy">size(<var>chunk</var>)</dfn> (non-byte streams only)</dt>
+ <dd>
+ <p>A function that computes and returns the size of the given <a>chunk</a> value.</p>
+
+ <p>The result is used to determine <a>backpressure</a>, manifesting via
I gave it a potential upgrade; thanks for flagging.
--
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/875#discussion_r166983598
Received on Thursday, 8 February 2018 16:09:18 UTC