Re: [ServiceWorker] Backpressure on fetch integrated with Streams (#452)

(A) looks pretty good to me. (B) is not too bad---I could add `getReader({ preventReleaseOnClose: true })`---but it does feel like it is overloading "locked" to mean too many things.

In terms of user-observable consequences, I think (A) allows you to check `req.body.state === "closed"` after `fetch(req)` finishes consuming it, whereas (B) causes it to throw.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/452#issuecomment-72107187

Received on Thursday, 29 January 2015 21:26:14 UTC