-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 4.0.0, 3.6.4
-
Component/s: None
The first clause in the wake function will prevent the task from being run with the intention being to prevent extremely frequent repeated calls. Since lastWakeTime is updated on every call to wake then the gap between lastWakeTime and currentTime might never grow.
const currentTime = clock(); const timeSinceLastWake = currentTime - lastWakeTime; lastWakeTime = currentTime; if (timeSinceLastWake < minInterval) { return; }