Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func (*Scheduler) Shutdown ¶
Shutdown stops the scheduler and waits for it to stop if it is running; otherwise does nothing.
func (*Scheduler) StartJobEvery ¶
StartJobEvery schedules a new periodic job with a given duration. Returns job id that could be used to stop the given job. When job run returns an error, that job won't be run again.
Click to show internal directories.
Click to hide internal directories.