Documentation ¶
Index ¶
Constants ¶
View Source
const (
// RFC3339Milli follows RFC3339 format with milliseconds for precision
RFC3339Milli = "2006-01-02T15:04:05.999Z07:00"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistributedTimer ¶
DistributedTimer keeps timer's tick time consistent. Please notice nextDurationFunc assumes different instances running under the same system clock.
func NewDistributedTimer ¶
func NewDistributedTimer(nextDurationFunc NextDurationFunc) *DistributedTimer
NewDistributedTimer creates a DistributedTimer
type NextDurationFunc ¶
NextDurationFunc is the type for registering callback function to determinate the timer to tick after the returned duration.
Click to show internal directories.
Click to hide internal directories.