Promise-returning delay function

Andrea Giammarchi andrea.giammarchi at
Tue Oct 28 15:28:34 PDT 2014

async and await would fail here same way indeed, there should be a
mechanism to branch out the binary expected result, IMO.

The other thread and the fact .NET already has something similar should
probably ring some bell but it's probably there that we should discuss this.


On Tue, Oct 28, 2014 at 10:12 PM, C. Scott Ananian <ecmascript at>

> I don't see any evidence that you can't handle the various cases with
> the usual control flow mechanisms.
> Remember that promises are isomorphic to the future async/await syntax.
>   --scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list