- From: Benjamin Gruenbaum <notifications@github.com>
- Date: Tue, 31 Mar 2015 05:15:53 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Message-ID: <whatwg/fetch/issues/27/88064220@github.com>
@jhusain kris argues this point here: https://github.com/kriskowal/gtor Also here is the similar discussion for [PromiseKit](https://github.com/mxcl/PromiseKit/issues/18#issuecomment-51493764) (Objective-C promises) - quoting @kriskowal : > My position on cancellation has evolved. I am now convinced that cancellation is inherently impossible with the Promise abstraction because promises can multiple dependess and dependees can be introduced at any time. If any dependee cancels a promise, it would be able to interfere with future dependees. There are two ways to get around the problem. One is to introduce a separate cancellation "capability", perhaps passed as an argument. The other is to introduce a new abstraction, a perhaps thenable "Task", which in exchange for requiring that each task only have one observer (one then call, ever), can be canceled without fear of interference. Tasks would support a fork() method to create a new task, allowing another dependee to retain the task or postpone cancelation. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/27#issuecomment-88064220
Received on Tuesday, 31 March 2015 12:16:23 UTC