Documentation
¶
Index ¶
- type Job
- type RepeatPolicy
- type Scheduler
- func (scheduler *Scheduler) AddAfter(duration time.Duration, fn func()) string
- func (scheduler *Scheduler) AddAt(tm time.Time, fn func()) string
- func (scheduler *Scheduler) Cancel(id string) bool
- func (scheduler *Scheduler) Latest() (time.Time, func(), bool)
- func (scheduler *Scheduler) Len() int
- func (scheduler *Scheduler) PeekID() (string, bool)
- func (scheduler *Scheduler) PeekTime() (time.Time, bool)
- func (scheduler *Scheduler) Run(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.