- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 1 May 2013 11:20:47 -0700
- To: Kevin Smith <zenparsing@gmail.com>
- Cc: Bill Frantz <frantz@pwpconsult.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, Brendan Eich <brendan@mozilla.com>, es-discuss <es-discuss@mozilla.org>
On Wed, May 1, 2013 at 11:17 AM, Kevin Smith <zenparsing@gmail.com> wrote: >> I think you're making this far too complicated. It's much simpler than >> this: >> >> 1. XHR is a very reasonable API to Future-ize. >> 2. XHRs are cancellable. >> 3. Ergo, we should have a cancellable Future subtype. > > Curious: has this proposed XHR api been published anywhere? I thought it was at <https://github.com/slightlyoff/DOMFuture>, but looks like it doesn't include an XHR example reworking yet. For an example, though, just look at something like jQuery's API, but with the callback arguments moved to a returned future. (Or jQuery's deferred-based API.) ~TJ
Received on Wednesday, 1 May 2013 18:21:33 UTC