Re: [streams] TransformStream: transform() is never invoked via pull() (#330)

> I don't quite follow the reasoning here. If we want to exert back-pressure we can change transform.writable.state. If we want to signal success/failure of the transform, we use the return value of transform.writable.write(). What am I missing? Code might help :)

Ah, I was talking a subtle thing about the interface between the sink and the WritableStream. `underlyingSink.write()` is invoked by `WritableStreamAdvanceQueue`. Once `underlyinSink.write()` fulfills, it continues to advance more (step "g"). So, `underlyingSink.write()` alone cannot exert back-pressure without delaying fulfillment of ws.write().

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/330#issuecomment-93689339

Received on Thursday, 16 April 2015 09:24:17 UTC