On Wed, May 1, 2013 at 11:17 AM, Kevin Smith <[email protected]> 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 _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

