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

Why can't we just make `text()` always reject on `"closed"` response? E.g.

```js
function text() {
  if (this.body.state === "closed") {
    return Promise.reject(new TypeError("stream is closed!"));
  }
  // otherwise, read the stream to the end...
}
```

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

Received on Wednesday, 28 January 2015 20:53:41 UTC