package
Version:
v0.6.21
Opens a new window with list of versions in this module.
Published: Mar 24, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Job func(interface{})
Job 延时任务回调函数
type Task struct {
Forever bool
}
Task 延时任务
type TimeWheel struct {
}
TimeWheel 时间轮
AddTimer 添加定时器 key为定时器唯一标识
func (tw *TimeWheel) RemoveTimer(key interface{})
RemoveTimer 删除定时器 key为添加定时器时传递的定时器唯一标识
Source Files
¶
Click to show internal directories.
Click to hide internal directories.