Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stop ¶
type Stop func() error
Stop is a function that calling code can execute on shutdown to stop the goroutine.
func NewScheduled ¶
NewScheduled executes action on every tick. It executes action immediately when called and does not wait for the first tick to pass.
If stop isn't nil, then it is executed as part of the stop process. It allows code to clean up additional resources.
NewScheduled returns a Stop function that calling code should use to stop the goroutine and free up internal resources.
Click to show internal directories.
Click to hide internal directories.