en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

Potentially confusing statements

Open Baribj opened this issue 2 years ago • 1 comments

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).

Baribj avatar Jul 13 '22 03:07 Baribj

you are right...

but id suggest, given the context, guarantees... "minimun" delay instead of "exact" delay

joaquinelio avatar Jul 13 '22 11:07 joaquinelio