Re: [whatwg/streams] Standard text for TransformStream (#811)

TejasQ commented on this pull request.



> +<div class="non-normative">
+
+<em>This section is non-normative.</em>
+
+If one were to write the {{TransformStreamDefaultController}} class in something close to the syntax of [[!ECMASCRIPT]],
+it would look like
+
+<pre><code class="lang-javascript">
+  class TransformStreamDefaultController {
+    constructor(stream)
+
+    get desiredSize()
+
+    enqueue(chunk)
+    error(reason)
+    terminate()

I find it interesting that we have `cancel()`, `terminate()`, and `close()`.

-- 
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/811#pullrequestreview-73714768

Received on Thursday, 2 November 2017 08:43:12 UTC