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. <[email protected]>wrote: > On Thu, Apr 25, 2013 at 6:49 PM, Mark S. Miller <[email protected]> > 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 > -- Cheers, --MarkM
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

