package
Version:
v1.6.0
Opens a new window with list of versions in this module.
Published: Jan 17, 2026
License: Apache-2.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
¶
type FakeClock struct {
}
Add advances fake time and fires timers whose deadlines have passed
After creates a timer that fires when fake time reaches now + d
Now just returns the current fake time
Sleep simply waits on After(d)
Tick automatically advances the fake clock every interval by calling Add(d).
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.