Versions in this module Expand all Collapse all v0 v0.0.1 Oct 9, 2019 Changes in this version + var DefaultBaseMask = 10 + var DefaultPrecision = time.Millisecond * 100 + var ElementCntPerBucket = []int64 + func After(d time.Duration) <-chan struct + func AfterFunc(d time.Duration, f func()) + func ResetMask(mask int, stop ...bool) + func ResetPrecision(precision time.Duration, stop ...bool) + func ResetPrecisionAndMask(precision time.Duration, mask int, stop ...bool) + type TaskList struct + Elems *list.List + func (ml *TaskList) AddChan(d time.Duration) (c chan struct{}, f func()) + func (ml *TaskList) AddTask(d time.Duration, f func()) + type TaskNode struct + type TimeWheel struct + func NewTimeWheel(basetime time.Duration, intervals []int64) *TimeWheel + func (p *TimeWheel) After(d time.Duration) <-chan struct{} + func (p *TimeWheel) AfterFunc(d time.Duration, f func()) + func (p *TimeWheel) Stop() + func (p *TimeWheel) UpdateOffset(index int) int64 + type Timer struct + func NewTimer(baseTime ...time.Duration) *Timer + func (p *Timer) After(d time.Duration) <-chan struct{} + func (p *Timer) AfterFunc(d time.Duration, task func()) + func (p *Timer) Stop() + type XTimerHandler struct + func NewXTimerHandler(precision time.Duration, buckets int) *XTimerHandler + func (p *XTimerHandler) After(d time.Duration) <-chan struct{} + func (p *XTimerHandler) AfterFunc(d time.Duration, task func()) + func (p *XTimerHandler) Stop()