Re: [fetch] Aborting a fetch (#27)

actually `foo` hasn't even executed when you call cancel there. But even if it was, `p.cancel()` would still cancel the operation. `p` is the root promise that doesn't have any "peers". For instance:

```js
var a = getPromise();

var a1 = a.then(...);
var a2 = a.then(...);
var a3 = a.then(...);
```

canceling `a` directly (`a.cancel()`)would cancel  the operation regardless what the children do. But if `a1` cancels, it doesn't cancel `a` unless `a2` and `a3` cancel as well (its peers).


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/27#issuecomment-102460167

Received on Friday, 15 May 2015 17:08:37 UTC