diff options
Diffstat (limited to 'util/timers/interface.go')
-rw-r--r-- | util/timers/interface.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/util/timers/interface.go b/util/timers/interface.go index 7e4393ab0..aec9a424c 100644 --- a/util/timers/interface.go +++ b/util/timers/interface.go @@ -41,24 +41,3 @@ type Clock interface { // the same timeouts as the original Clock. Decode([]byte) (Clock, error) } - -// WallClock extends the Clock interface by providing a referencial timing, allowing to create -// timed events that are differential. -type WallClock interface { - Clock - - // Since returns the time spent between the last time the clock was zeroed out and the current - // wall clock time. - Since() time.Duration - - // DeadlineMonitorAt returns a DeadlineMonitor that expires after the provided delta time from zero has passed. - // - // DeadlineMonitorAt must be called after Zero; otherwise, the context's behavior is undefined. - DeadlineMonitorAt(at time.Duration) DeadlineMonitor -} - -// DeadlineMonitor test to see if the deadline it was created for has been reached yet or not. -type DeadlineMonitor interface { - // Expired return true if the deadline has passed, or false otherwise. - Expired() bool -} |