Versions in this module Expand all Collapse all v1 v1.2.1 Mar 15, 2020 Changes in this version + func SetTimeWheel(t *TimeWheel) + type Job func(arge interface{}) + type Task struct + type TaskData interface + type TimeWheel struct + func GetTimeWheel() *TimeWheel + func New(interval time.Duration, slotNum int) *TimeWheel + func (tw *TimeWheel) AddTimer(delay time.Duration, data TaskData, job Job) + func (tw *TimeWheel) AddTimerCustom(delay time.Duration, key interface{}, data TaskData, job Job) + func (tw *TimeWheel) RemoveTimer(key interface{}) + func (tw *TimeWheel) Start(closeSig chan bool) + func (tw *TimeWheel) Stop()