RussellLuo / timingwheel

Golang implementation of Hierarchical Timing Wheels.
MIT License
660 stars 125 forks source link

增加执行定时任务接口 #9

Closed Allenxuxu closed 5 years ago

Allenxuxu commented 5 years ago

增加 func (tw *TimingWheel) EveryFunc(d time.Duration, f func()) *Timer 方法 提供执行 定时任务 能力

RussellLuo commented 5 years ago

关闭此 PR,原因参考 https://github.com/RussellLuo/timingwheel/issues/8#issuecomment-536610291