Documentation ¶
Overview ¶
精度为秒
如果任务的执行时常超过间隔时常,则会开启一个新的任务
记得调用 scheduler.Start()
Index ¶
- func CronForever(name string, startAt int64, duration int64, callback func())
- func CronOnce(name string, startAt int64, callback func())
- func CronSpecific(name string, startAt int64, duration int64, times int32, callback func())
- func Forever(name string, duration int64, callback func())
- func Now() int64
- func NowFakeClear()
- func NowFakeSet(ts int64)
- func Once(name string, after int64, callback func())
- func Specific(name string, duration int64, times int32, callback func())
- func Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CronForever ¶
startAt 第一次执行时间
func CronSpecific ¶
startAt 第一次执行时间
func NowFakeClear ¶
func NowFakeClear()
func NowFakeSet ¶
func NowFakeSet(ts int64)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.