Documentation ¶
Overview ¶
Package task implements jobs which can run at given intervals
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
Job runs a given function using its duration as the interval
func (*Job) MarshalYAML ¶
func (*Job) Run ¶
Run executes a f at intervals specified by Job's duration. runOnStart can be specified to have f run when Run is called instead of only when the first tick from the ticker.
func (*Job) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.