Re: [whatwg/streams] Provide a way for the underlying sink to signal write progress? (#876)

This now sounds related to a general problem with `desiredSize`: often you don't want any extra buffering, but you do want to receive writes of some ideal size. This is a particular issue with pipes, where you'd like the amount that is read from the start of the pipe to reflect the amount of data that the end of pipe would like to consume, but there's currently no way for that information to get through the intervening transform streams.

I am contemplating some kind of "pass-through desiredSize" mode to address this issue. I haven't worked out a concrete design, but it looks like it could also address the use case of an underlying sink that wants to update `desiredSize` at finer granularity than the input chunks.

The idea of delaying `.ready` until a certain amount of space is available seems broadly similar to #493.

-- 
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/876#issuecomment-365912627

Received on Thursday, 15 February 2018 12:27:21 UTC