Documentation
¶
Overview ¶
Package scheduling provides tools for scheduling tasks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler interface {
// AddTask adds given task to the scheduler.
AddTask(name string, fn func(ctx context.Context) error)
// Start starts executing tasks in the background. If the scheduler is already running, this is
// a noop operation.
Start()
// Stop stops executing tasks. If the scheduler is not running, this is a noop operation.
Stop()
}
Scheduler is an interface for scheduling tasks.
Click to show internal directories.
Click to hide internal directories.