package tasks

import "time"

// Tasker is the interface for task, and used to dispatch tasks.
type Tasker interface {
	// DispatchTask dispatches tasks.
	DispatchTask() error
	// Interval gets the interval of dispatch task.
	Interval() time.Duration
}
