Documentation
¶
Overview ¶
* 通用的全局定时任务管理器 未实现任务持久化
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimerTaskFunc ¶
type TimerTaskFunc func(args ...interface{})
type TimerTaskManager ¶
type TimerTaskManager struct {
// contains filtered or unexported fields
}
定时任务管理器
func (*TimerTaskManager) AddTask ¶
func (manager *TimerTaskManager) AddTask(t time.Time, key string, exec TimerTaskFunc, params []interface{}) error
添加任务
Click to show internal directories.
Click to hide internal directories.