go.pact.im/x/clock (go): Package clock defines basic interfaces to a clock. A clock can be provided by the host operating system but also by other packages.  A clock provides a capability to schedule an arbitrary event to run after at least the given duration. On expiry, the event calls a function in its own goroutine with the current time argument. All other functions are implemented in terms of scheduled events or using an optimized Scheduler implementations.  A time.Now function signature should be accepted instead of Clock instance if a limited capability is required that allows getting the current time but not scheduling new events. It is possible to implement Schedule, Timer and Ticker in terms of each other interchangeably and hence there is no option to limit the scope for these operations.
Keywords: golang