package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Nov 6, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package clock supplies injectable clocks and cancellable waiting.
Wait waits using an injected clock, stopping on context cancellation.
Clock abstracts current time and owned timers.
Manual advances only when Advance is called; timers have buffered channels.
NewManual creates a deterministic manual clock.
Advance advances the manual clock and fires due timers.
NewTimer creates an owned timer.
Now returns the current UTC time.
Real uses the system UTC clock and timers.
NewTimer creates an owned timer.
Now returns the current UTC time.
Timer exposes timer delivery and cancellation.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.