package
0.0.0-20240809011500-085f6154bf8b
Repository: https://github.com/skeletongo/cube.git
Documentation: pkg.go.dev
# Functions
AfterTimer 创建在默认节点上执行的延时方法 interval 延时时长 f 方法实例 返回延时方法的id,用来提前终止执行.
NewCron 创建循环定时方法 o 方法执行节点,为nil时在默认节点上执行 expr 定时执行规则 f 定时执行的方法 返回延时方法的id,用来提前终止执行,和expr配置错误.
goroutine safe.
NewTimer 创建延时方法 o 方法执行节点,为nil时在默认节点上执行 interval 延时时长 f 方法实例 返回延时方法的id,用来提前终止执行.
SendTimer 执行延时方法 o 执行节点 t 延时方法.
SetObject 设置定时器延时函数默认执行节点.
StartCron expr 定时执行规则 f 定时执行的方法 返回延时方法的id,用来提前终止执行,和expr配置错误.
Stop 停止延时方法执行.
StopAll 停止所有延时方法的执行.
# Structs
Field name | Mandatory? | Allowed values | Allowed special characters ---------- | ---------- | -------------- | -------------------------- Seconds | No | 0-59 | * / , - Minutes | Yes | 0-59 | * / , - Hours | Yes | 0-23 | * / , - Day of month | Yes | 1-31 | * / , - Month | Yes | 1-12 | * / , - Day of week | Yes | 0-6 | * / , -.
# Type aliases
No description provided by the author