(self)
Return time until the next task should be executed, if any task is scheduled
Return time until the next task should be executed, if any task is scheduled
Return time until the next task should be executed if any task is scheduled
def _sleep_time_until_next_task(self) -> float:
        "Return time until the next task should be executed, if any task is scheduled"
        next_task = self._next_task()
        if next_task is None:
            return 0
        else:
            _, start_time = next_task
            return start_time + self.timeout_ms / 1000.0 - perf_counter()
def _sleep_time_until_next_task ( self ) -> float : next_task = self . _next_task ( ) if next_task is None : return 0 else : _ , start_time = next_task return start_time + self . timeout_ms / 1000.0 - perf_counter ( )