Closed yutakahirano closed 9 years ago
@domenic, can you take a look at the change?
(review done :))
I would add this example:
// The user agent must not terminate the communication because there is an
// active reader. Even though the reader is not reachable by the garbage collector,
// the reader has been used to make termination observable, so if termination
// occurred on GC, that would make GC observable.
fetch("http://www.example.com/").then(res => {
res.body.getReader().closed.then(() => console.log("stream closed!"));
});
I would add this example:
Done.
The user agent can terminate the fetch operation and reclaim associated resources if the response body stream is not reachable and there is not an active reader. #15