Re: [Futures] Possible to multiply-resolve a resolver in weird ways

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]>
On 6/5/13 2:08 PM, Anne van Kesteren wrote:
> I now made the resolved flag checks on the public methods. The
> internal ones no longer have the check so API authors just have to be
> careful to avoid race conditions or use their own flag to prevent that
> from happening. This also required added a check in the Promise
> constructor.

Thanks, looks reasonable.

> (I also implemented the renaming from Future to Promise per TC39
> discussion and removed the done() method. We may or may not end up
> with some more minor changes, will try to keep this list posted.)

Thank you for not breaking the existing links.  ;)

Looks like the "new Future" in the example in section 4.1 and some 
newFuture bits in the non-normative box right above the prose for the 
Promise constructor got missed.

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.