[whatwg/streams] Add examples of using identity transforms to manipulate streams (#847)

Add examples concatenateReadables and promiseToReadable, both of which combine
pipeTo and TransformStream to synthesize a readable stream from something else.

The examples are similar so they appear in a single section.

Tests are included to verify the correct behaviour of the examples.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/847

-- Commit Summary --

  * Add examples of using identity transforms to manipulate streams

-- File Changes --

    M index.bs (49)
    A reference-implementation/to-upstream-wpts/transform-streams/examples.html (11)
    A reference-implementation/to-upstream-wpts/transform-streams/examples.js (173)

-- Patch Links --

https://github.com/whatwg/streams/pull/847.patch
https://github.com/whatwg/streams/pull/847.diff

-- 
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/847

Received on Friday, 27 October 2017 11:02:12 UTC