- From: Kagami Sascha Rosylight <notifications@github.com>
- Date: Fri, 30 Jun 2023 04:06:21 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 30 June 2023 11:06:26 UTC
Hmm yeah, #616 could allow TransformStream based control:
```js
stream.pipeThrough(new TransformStream({
transform(chunk, c) {
c.enqueue(chunk);
return new Promise(r => setTimeout(r, 10));
}
}))
```
For now this only works for non-byte streams, so maybe not useful for network use case.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1270#issuecomment-1614498174
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/streams/issues/1270/1614498174@github.com>
Received on Friday, 30 June 2023 11:06:26 UTC