A Challenge Problem for Promise Designers (was: Re: Futures)
Tab Atkins Jr.
jackalmage at gmail.com
Thu Apr 25 20:38:04 PDT 2013
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".
More information about the es-discuss