setClockTimeout()
setClockTimeout(
cb
,ms
): () =>void
Works the same way as setTimeout but will wait to fire until next clock second.
Parameters
cb
() => void
ms
number
Returns
Function
Returns
void
Example
const cleanup = setClockTimeout(() => console.log('hi'), 250);
// will log hi after 250ms starting on next clock second