Make documentation standalone and generalize examples
This commit is contained in:
@@ -205,11 +205,8 @@ class ExecutionService:
|
||||
def _sleep_until_due(self) -> bool:
|
||||
"""Wait for the soonest deadline, the housekeeping cap, or a new one.
|
||||
|
||||
A fixed poll here made every delayed item late by 0-1000ms whatever the
|
||||
load — on a rollershutter driven for a measured 26 seconds, 2-4% of its
|
||||
travel every time, accumulating in the position its node believes it is
|
||||
at. Sleeping to the deadline instead leaves a wake-up and a promotion,
|
||||
which is milliseconds.
|
||||
Sleeping until the deadline avoids adding a fixed polling delay to
|
||||
timed work. New deadlines wake the timer so earlier work is not missed.
|
||||
"""
|
||||
self._timer_wake.clear()
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user