Versions in this module Expand all Collapse all v1 v1.1.0 Apr 13, 2023 Changes in this version + type Task struct + Data E + TimeoutCallback TimeoutCallbackFn[E] + func (t *Task[E]) Elasped() time.Duration + func (task *Task[E]) Delay() time.Duration + type TaskSlot struct + type TimeWheel struct + func New(interval time.Duration, slotNum uint16) (*TimeWheel[E], error) + func (tw *TimeWheel[E]) AddTask(delay time.Duration, task Task[E]) (taskid, error) + func (tw *TimeWheel[E]) HasTask(key taskid) bool + func (tw *TimeWheel[E]) RemoveTask(key taskid) + func (tw *TimeWheel[E]) Start() + func (tw *TimeWheel[E]) Stop() + type TimeoutCallbackFn func(Task[E])