Versions in this module Expand all Collapse all v0 v0.5.0 Apr 6, 2023 Changes in this version + func Close() + func PushTask(task Task) + func Sched() + type Hook func() + type LocalScheduler interface + Schedule func(Task) + type Task func() + type Timer struct + func NewAfterTimer(duration time.Duration, fn TimerFunc) *Timer + func NewCondTimer(condition TimerCondition, fn TimerFunc) *Timer + func NewCountTimer(interval time.Duration, count int, fn TimerFunc) *Timer + func NewTimer(interval time.Duration, fn TimerFunc) *Timer + func (t *Timer) ID() int64 + func (t *Timer) Stop() + type TimerCondition interface + Check func(now time.Time) bool + type TimerFunc func()