- From: Adam Rice <notifications@github.com>
- Date: Fri, 27 Oct 2017 12:33:19 +0000 (UTC)
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 27 October 2017 12:33:42 UTC
ricea commented on this pull request.
> +        controller.enqueue(chunk);
+      },
+
+      flush(controller) {
+        if (partialChunk.length > 0) {
+          controller.enqueue(partialChunk);
+        }
+      }
+    });
+  }
+</code></pre>
+
+This would be used in code like:
+<pre><code class="lang-javascript">
+  fetchEvent.respondWith(new Response(fetch(url).then(response =>
+    response.body.pipeThrough(LipFuzzTransform({ userName, displayName, icon, date })))));
I often get confused between stream and promise-for-stream. Which inspired me to write the second example in #847.
-- 
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/846#discussion_r147398565
Received on Friday, 27 October 2017 12:33:42 UTC