Discover Packages
github.com/cep21/circuit/v4
internal
clock
package
Version:
v4.1.0
Opens a new window with list of versions in this module.
Published: Feb 28, 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
Documentation
¶
TickUntil will tick the mock clock until shouldStop returns false. Real sleep should be very small
type MockClock struct {
}
MockClock allows mocking time for testing
Add some time, triggering sleeping callbacks
After simulates time.After
AfterFunc simulates time.AfterFunc. The returned *time.Timer is a dummy
stopped timer; calling Stop on it is safe but has no effect on the scheduled callback.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.