Documentation ¶
Index ¶
- Constants
- type Option
- type Scheduler
- type Ticker
- func (slf *Ticker) After(name string, after time.Duration, handleFunc interface{}, args ...interface{})
- func (slf *Ticker) GetSchedulers() []string
- func (slf *Ticker) IsStopped(name string) bool
- func (slf *Ticker) Loop(name string, after, interval time.Duration, times int, handleFunc interface{}, ...)
- func (slf *Ticker) Release()
- func (slf *Ticker) StopTimer(name string)
- type Timer
Constants ¶
View Source
const ( Forever = -1 // 无限循环 Once = 1 // 一次 Instantly = 0 // 立刻 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ticker ¶
type Ticker struct {
// contains filtered or unexported fields
}
Ticker 管理器
func (*Ticker) After ¶
func (slf *Ticker) After(name string, after time.Duration, handleFunc interface{}, args ...interface{})
After 设置一个在特定时间后运行一次的调度器
Click to show internal directories.
Click to hide internal directories.