Re: [whatwg/streams] Add explainer for WritableStreamDefaultController's AbortSignal (#1162)

@nidhijaju commented on this pull request.



> +                                             body: chunk });
+    await response.text();
+  }
+});
+const writer = ws.getWriter();
+
+writer.write('some data');
+await writer.abort();
+```
+
+This example shows a use case of this feature with WebTransport.
+
+```javascript
+const wt = new WebTransport(...);
+await wt.ready;
+const ws = await wt.createUnidirectiaonalStream();

Done :)

-- 
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/1162#discussion_r698487735

Received on Monday, 30 August 2021 13:28:43 UTC