Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct {
// Before will be called before running this task.
Before func(ctx context.Context)
// Fn is main function which will called in loop.
Fn func(ctx context.Context)
// After will be called after the task loop.
After func(ctx context.Context)
}
Task runs a task at fixed duration which will call fn().
Click to show internal directories.
Click to hide internal directories.