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

> > WritableStreamDefaultControllerGetBackpressure(_controller_) performs the following steps:
> > 
> > 1. Let _desiredSize_ be ! WritableStreamDefaultControllerGetDesiredSize(_controller_).
> > 2. If _controller_.[[strategyHWM]] is 0,
> >    
> >    1. Return true if _desiredSize_ < 0, or false otherwise.
> >       (This is effectively the same as checking if _controller_.[[queueTotalSize]] > 0.)
> > 3. Otherwise,
> >    
> >    1. Return true if _desiredSize_ ≤ 0, or false otherwise.

Is this different from just making HWM 0 equivalent to HWM 1?



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

Received on Tuesday, 14 September 2021 22:30:21 UTC