Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner runs a task periodically.
func StartPeriodicTask ¶
StartPeriodicTask creates and starts a new Runner to run the given task peridiocally. The ticker regulates the periodicity. The timeout is used for the context timeout of the task. The timeout can be larger than the periodicity of the ticker. That means if a tasks takes a long time it will be immediately retriggered.
Click to show internal directories.
Click to hide internal directories.