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
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>
> > 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".
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss