Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This isn't quite the whole picture. If called in a nested context, `setTimeout` callbacks get executed in the next execution window, or at least 4ms after the initial call, whichever is earlier. Similarly, I believe `setInterval` has a minimum interval that it can't run faster than.

See: https://developer.mozilla.org/en-US/docs/Web/API/Window/setT...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: