- From: Jeffrey Yasskin <notifications@github.com>
- Date: Fri, 27 Mar 2015 09:42:59 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Friday, 27 March 2015 16:43:21 UTC
@jakearchibald Oh right, refcount-starts-at-0 again. I think you're right. I think this all leads to the guideline that, if you have a `CancellablePromise` `parent` and a `child = parent.then(...)`, then if you want to be able to create more children in the future, before you hand `child` out to code that might cancel it, you have to create and hold onto your own `child=parent.then()` until you're sure you're done creating children. When storing `parent` in a cache, you might just write `parent.then()` and throw away the result to permanently disable cancellation. Right? --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/27#issuecomment-87002805
Received on Friday, 27 March 2015 16:43:21 UTC