Where'd Promise#done go?

Tab Atkins Jr. jackalmage at gmail.com
Thu Jun 20 19:06:08 PDT 2013


On Thu, Jun 20, 2013 at 7:03 PM, Mark S. Miller <erights at google.com> wrote:
>>    x.a().then( t1p=>
>>    y.b().then( t2p=>
>>    let t3p = { then(cb): { t1p.then( t1=> t2p.then( t2=>
>>                                        t1.c(t2).then( t3=> cb(t3) ) ) ) };
>>    ...' ) )
>
>
> I can't yet respond to this because I don't understand your notation. What
> does "{ then(cb): " mean?

It seems pretty clear that's intended to be a concise method
definition.  Claus accidentally added a colon, likely through force of
habit.

~TJ


More information about the es-discuss mailing list