Re: [whatwg/streams] Update endpoint pair example and fix citation (PR #1318)

@domenic commented on this pull request.



>  
  <xmp highlight="js">
- const { readable, writable } = createEndpointPair();
- readable.pipeThrough(new TransformStream(...)).pipeTo(writable);
+ async function handleTransformer({readable, writable}) {
+   await readable.pipeThrough(new TransformStream(...)).pipeTo(writable);
+ }
  </xmp>

Sorry, this seems to have gone in the opposite direction of what I'm requesting. The point of this example is not to reference any other API. It's to give an example of the simplest possible concept of an endpoint pair, i.e. a platform-provided API that returns a `{ readable, writable }` object.

Can you revert it to its previous version?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1318#discussion_r1673372876
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/pull/1318/review/2170870013@github.com>

Received on Thursday, 11 July 2024 04:08:30 UTC