Documentation ¶
Overview ¶
A clock that provides blocking calls that wait until absolute times have occurred. The clock can be controlled programmatically or be based of real time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock interface { Setter // Wait until time t has arrived. If t is in the past it immediately returns. Until(t time.Time) }
A clock interface to read time and wait until an absolute time arrives. Three implementations are available: A 'wall' clock that is based on realtime, a 'fast' clock that is always ahead and a 'set' clock that can be controlled via a setting time explicitly.
Click to show internal directories.
Click to hide internal directories.