Re: [whatwg/streams] Latency-bounded reads (Issue #1270)

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