sam.e.giles at gmail.com
Fri Feb 27 15:12:35 PST 2015
Re fetch: https://github.com/whatwg/fetch/issues/20
On Fri, 27 Feb 2015 23:08 Jonas Sicking <jonas at sicking.cc> wrote:
> On Thu, Feb 26, 2015 at 11:43 PM, Andrea Giammarchi
> <andrea.giammarchi at gmail.com> wrote:
> > AFAIK bluebird did:
> > https://github.com/petkaantonov/bluebird/blob/master/API.md#cancelerror-
> > But I agree once you've made Promises more complex than events ( xhr in
> > case ) nobody wins :-/
> > Although, specially for fetch or anything network related, there
> **must** be
> > a way to bloody cancel that!
> > ....right?
> Yeah. Most IO operations do need a way to cancel. And hopefully all of
> them will be returning Promises.
> I definitely agree that providing cancelability on Promise will add
> complexity. That said, the pattern of making heavy long-running APIs
> return a Promise, and wanting to enable cancelling them, is likely
> going to be common.
> So finding a good solution to that pattern seems worthwhile.
> / Jonas
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss