ReliableTimerJs addresses the shortcomings of windows.setTimeout(). Its advantages are:
- It preserves the timer callback’s order-of-execution, first by the execution time, and second by the order in which it’s invoked.
- Callers can specify the timer callback’s execution context as well as the function parameters when scheduling the callback.
A more thorough description of windows.setTimeout() problems is found here.
A demo is available at jsFiddle.
ReliableTimerJs is released under the MIT license.
