- From: Petka Antonov <notifications@github.com>
- Date: Fri, 15 May 2015 10:08:10 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Friday, 15 May 2015 17:08:37 UTC
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