Documentation ¶
Index ¶
Constants ¶
View Source
const (
MIN_TIMER_INTERVAL = 1 * time.Millisecond
)
Variables ¶
This section is empty.
Functions ¶
func AddCallback ¶
func AddCallback(d time.Duration, callback CallbackFunc) *timer
Add a callback which will be called after specified duration
func AddTimer ¶
func AddTimer(d time.Duration, callback CallbackFunc) *timer
Add a timer which calls callback periodly
func StartTicks ¶
Start the self-ticking routine, which ticks per tickInterval
Types ¶
Click to show internal directories.
Click to hide internal directories.