W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2013

Re: Future cancellation

From: Sam L'ecuyer <sam@cateches.is>
Date: Tue, 30 Apr 2013 14:01:03 -0400 (EDT)
To: "Brendan Eich" <brendan@mozilla.com>
Cc: "Lucas Smith" <lsmith@lucassmith.name>, "Ron Buckton" <rbuckton@chronicles.org>, "public-script-coord@w3.org" <public-script-coord@w3.org>, "es-discuss" <es-discuss@mozilla.org>
Message-ID: <1367344863.21734783@apps.rackspace.com>
> Lucas Smith wrote:
>> IMO, cancelation is not appropriate for promises/futures. (sticking 
>> with the name "promises", sorry for the distraction).

> Agreed.

Perhaps I'm missing something, but is cancel() conceptually different from passing a Future's corresponding Resolver around so that the program can invoke reject() at will?  This seems like it's a new, "irretrievably broken" way to do something you already can do.

-sam


Received on Tuesday, 30 April 2013 18:01:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:13 UTC