A Challenge Problem for Promise Designers (was: Re: Futures)

Mark S. Miller erights at google.com
Thu Apr 25 20:52:47 PDT 2013

So how does the semantics of Q(x) differ from the semantics of
Future.resolve(x) ?

On Thu, Apr 25, 2013 at 8:38 PM, Tab Atkins Jr. <jackalmage at gmail.com>wrote:

> On Thu, Apr 25, 2013 at 6:49 PM, Mark S. Miller <erights at google.com>
> wrote:
> > What is the semantics of Future.resolve?
> Creates an already-accepted future using the "resolve" algorithm,
> which is the same magic that happens to the return value of a .then()
> callback (if it's a future, it adopts the state; otherwise, it accepts
> with the value).
> In other words, "If this is a future, use it; otherwise, make me a
> future for it".
> ~TJ

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130425/c2dc21b3/attachment.html>

More information about the es-discuss mailing list