If it makes it into the language, I'd rather see `Function.delay(timeout,
callback)` or, even better, `Promise.delay(timeout).then(callback)`. The
latter would also fit better with modern ES standard language APIs, IMHO.
The latter has already been suggested here before, plenty of times, but
AFAICT, it's relatively low priority.

Beyond that, I agree that changing `setTimeout` is out of scope here.

On Mon, Apr 25, 2016, 14:04 Adrian Sieber <[email protected]> wrote:

> @Boris Well, I wasn't aware the `setTimeout()` has such an absolutely
> broken API. So I guess a clean reset would be better/easier.
>
> How about making `setTimeout()` a part of ECMAscript. Maybe as
> `Date.setTimeout()` like it was done with `Number.parseInt()` … and this
> time with a saner API =D
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to