- From: jhusain <notifications@github.com>
- Date: Thu, 16 Apr 2015 08:28:21 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Message-ID: <whatwg/fetch/issues/27/93763705@github.com>
The only implementations I'm aware of are @kriskowal 's and my own. Kris: https://github.com/kriskowal/gtor/blob/master/task.js Mine: https://github.com/jhusain/task-lib It would be great to discuss the benefits and drawbacks of these two approaches. Currently I feel like either of these types would be a better option than trying to morph Promises into a type with fundamentally different guarantees. I share your concern that trying to bolt cancellation on the promises may actually be less expeditious than introducing a new primitive. This change would presumably need to be approved by both the WHATWG and the TC-39, and promise cancellation is clearly not without controversy. :) It may be more expedient to try and get a new, more appropriate type standardized and let Promises be Promises. Moreover I'm sure we'd end up with a better API. JH > On Apr 16, 2015, at 7:42 AM, Jake Archibald <notifications@github.com> wrote: > > @NekR @jhusain is there a particular implementation/spec of Task that you think would work well here? > > — > Reply to this email directly or view it on GitHub. > --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/27#issuecomment-93763705
Received on Thursday, 16 April 2015 15:28:52 UTC