en.javascript.info
en.javascript.info copied to clipboard
Potentially confusing statements
From the Scheduling: setTimeout and setInterval chapter:
The nested setTimeout guarantees the fixed delay (here 100ms).
Also:
Please note that all scheduling methods do not guarantee the exact delay.
Those two statements seem rather conflicting.
Perhaps the first one should be something along the lines of:
The nested setTimeout (under ideal processor conditions) guarantees the fixed delay (here 100ms).
you are right...
but id suggest, given the context, guarantees... "minimun" delay instead of "exact" delay