Re: [whatwg/streams] Add SyncOneToOneTransformFunctionAdaptor example (#843)

This is a great example. I like the points you highlighted in the text: it shows that the API is simple even for trivial transforms, and it talks about backpressure vs. wastage, and how errors work.

I updated it a bit, most notably trying to play off the Array.prototype.map analogy. Let me know what you think. I also did indeed make the adapter return a TransformStream, as it seemed to clean things up in this example at least.

-- 
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/843#issuecomment-338319273

Received on Friday, 20 October 2017 20:52:06 UTC