- From: Jan-Ivar Bruaroey <notifications@github.com>
- Date: Wed, 08 Sep 2021 06:49:40 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 8 September 2021 13:49:53 UTC
> My best guess was something like "I currently have nothing in the queue, and I intend to consume whatever you give me ASAP, but please don't give me more than 1 chunk". But... that seems like the right semantics for HWM = 1. So I admit I'm confused. "I have no queue, so I couldn't consume a chunk before, but I'm ready to consume a chunk now (because I have a taker for it)". (I know it technically has a queue, but the intent of HWM = 0 is for it to remain empty at all times, so for all intents and purposes it's acting like it has no queue). > Similarly, read requests on the readable end should cause the writable end to also request some data if it doesn't have anything queued yet. How about `controller.requestData()` ? `controller.pullProducer()` ? This would be useful for realtime streams where chunks are expensive and prebuffering undesirable (pulling too soon may yield a less fresh realtime frame). -- 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/issues/1158#issuecomment-915256359
Received on Wednesday, 8 September 2021 13:49:53 UTC