InterruptableAsyncInterval can be starved of execution

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.0
    • Affects Version/s: 4.0.0, 3.6.4
    • Component/s: None
    • 2
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • 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;
      }
      

              Assignee:
              Durran Jordan
              Reporter:
              Neal Beeken
              Daria Pardue
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: