Promise-returning delay function

Andrea Giammarchi andrea.giammarchi at gmail.com
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.

Regards

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

> 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: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141028/24edcb6a/attachment.html>


More information about the es-discuss mailing list