W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2013

Re: [futures] Making ProgressFuture immediate

From: Mounir Lamouri <mounir@lamouri.fr>
Date: Thu, 18 Apr 2013 17:36:15 +0200
Message-ID: <517012EF.6060100@lamouri.fr>
To: www-dom@w3.org
On 12/04/13 01:05, Tab Atkins Jr. wrote:
> I propose that we change it so that, if at least one progress update
> has already been made and the future isn't yet resolved, the progress
> callback is immediately (next tick) called with the most recent
> progress value.  That way the progress updates also act kinda like
> futures in general, which is nice.

I guess it would be good to have the callback being called synchronously
in that case maybe (assuming ProgressFuture specification re-uses the
synchronous flag).

Also, I think we should call .progress() such as .then() when the
ProgressFuture is done.

--
Mounir
Received on Thursday, 18 April 2013 15:36:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:20 UTC