Future cancellation

Tab Atkins Jr. jackalmage at gmail.com
Wed May 1 11:20:47 PDT 2013


On Wed, May 1, 2013 at 11:17 AM, Kevin Smith <zenparsing at 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


More information about the es-discuss mailing list