Re: [whatwg/streams] Piping to writable streams with HWM 0? (#1158)

I think I see two options for the API:
1. Implicit. Semantics are "`writer.ready` is true when the underlying sink is not writing".
2. Explicit. Semantics are "`writer.ready` is true when `controller.bikeshed()` has been called until the next chunk is written".

I am leaning towards the explicit options, because the implicit version may require sink authors to artificially extend the time before resolving the write() promise just to stop another chunk from being written.

The implicit version would only do anything when `HWM=0`. The explicit version could in principle work with any HWM, but there is no obvious use case for it (if we are already behind in writing, why would we ask for more chunks?).

-- 
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-970191784

Received on Tuesday, 16 November 2021 11:45:58 UTC