Versions in this module Expand all Collapse all v0 v0.1.15 Jan 3, 2023 v0.1.14 Jan 3, 2023 Changes in this version + const Debug + type Entry interface + AddRef func() + Release func() int32 + TimerCallback func() + type Timer struct + func NewTimer(num int) (t *Timer) + func (t *Timer) Add(expire itime.Duration, fn func()) (td *TimerData) + func (t *Timer) Del(td *TimerData) + func (t *Timer) Init(num int) + func (t *Timer) Set(td *TimerData, expire itime.Duration) + type TimerData struct + Key string + func (td *TimerData) Delay() itime.Duration + func (td *TimerData) ExpireString() string + type TimingWheel struct + func NewTimingWheel(size int) *TimingWheel + func (t *TimingWheel) AddTimer(entry Entry, tm int) error + func (t *TimingWheel) Start() + func (t *TimingWheel) Stop()