Documentation ¶
Index ¶
- func AddTickerFunc(key string, fx Func, ctx *context.Context, d time.Duration) error
- func AddTimerFunc(key string, fx Func, ctx *context.Context, d time.Duration) error
- func RemoveTickerFunc(key string)
- func RemoveTimerFunc(key string)
- func ResetTickerFunc(key string, d time.Duration) error
- func ResetTimerFunc(key string, d time.Duration) error
- func SetParamsTickerFunc(key string, pKey any, pValue any) error
- func SetParamsTimerFunc(key string, pKey any, pValue any) error
- type Func
- type FuncName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTickerFunc ¶
AddTickerFunc 加入一个计时任务
func AddTimerFunc ¶
AddTimerFunc 加入一个定时任务
func ResetTickerFunc ¶
ResetTickerFunc 重置指定的计时任务
func ResetTimerFunc ¶
ResetTimerFunc 重置指定的定时任务
func SetParamsTickerFunc ¶
SetParamsTickerFunc 设置指定的计时任务的Context的key-value
Types ¶
Click to show internal directories.
Click to hide internal directories.