Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessAsync ¶
Types ¶
type WorkFinder ¶
type WorkFinder interface { FindRequested() []interface{} MarkCompleted() MarkErroneous() Stop() }
type WorkScheduler ¶
type WorkScheduler struct { Finder interface{} Workers []Worker Delay int64 // contains filtered or unexported fields }
func NewScheduler ¶
func NewScheduler(finder interface{}, workers []Worker, delay int64) WorkScheduler
func (*WorkScheduler) Start ¶
func (ws *WorkScheduler) Start()
func (*WorkScheduler) Stop ¶
func (ws *WorkScheduler) Stop()
Click to show internal directories.
Click to hide internal directories.