Documentation ¶
Index ¶
Constants ¶
This section is empty.
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.