Discover Packages
github.com/braedonsaunders/ether
internal
schedule
package
Version:
v0.2.53
Opens a new window with list of versions in this module.
Published: Oct 31, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package schedule provides wall-clock deadlines for periodic background work.
Playback timeouts and rate limiting should continue to use elapsed time.
MaxWait bounds how long a suspended machine can take to notice overdue work
after resuming, even where monotonic timers exclude time spent asleep.
Due checks a persisted last-attempt timestamp. A future timestamp from a
corrected clock gets one new attempt; the caller records the current time.
Wait waits one interval with bounded wall-clock rechecks. It owns no goroutine
and returns false on cancellation, including when already overdue.
Deadline is owned by a single scheduler goroutine. Reset after a completed
attempt coalesces missed intervals instead of replaying a backlog.
Remaining uses wall time. A backwards clock correction rebases the deadline
once, limiting postponement to one interval without creating a retry storm.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.