Run 非阻塞的方式让时间轮转起来
()
| 189 | |
| 190 | // Run 非阻塞的方式让时间轮转起来 |
| 191 | func (tw *TimeWheel) Run() { |
| 192 | go tw.run() |
| 193 | zlog.Ins().InfoF("timerwheel name = %s is running...", tw.name) |
| 194 | } |
| 195 | |
| 196 | // GetTimerWithIn 获取定时器在一段时间间隔内的Timer |
| 197 | func (tw *TimeWheel) GetTimerWithIn(duration time.Duration) map[uint32]*Timer { |