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

@MattiasBuelens commented on this pull request.

Looks good, just one small nit. 🙂

> +                                             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();

```suggestion
const ws = await wt.createUnidirectionalStream();
```

-- 
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#pullrequestreview-741641182

Received on Monday, 30 August 2021 13:25:41 UTC