package
Version:
v0.0.0-...-d31e6af
Opens a new window with list of versions in this module.
Published: Jun 10, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Queue - A queue for enqueueing tasks to be processed
NewQueue - Creates a new Queue
Start - Starts the worker and dispatcher go routines
Submit - Adds a new Task to be processed
type Task interface {
Run()
CheckHeartbeat()
}
Task - Task interface
Worker - Worker that procresses tasks
NewWorker - Creates a new worker
Start - Begins processing worker's task
Source Files
¶
Click to show internal directories.
Click to hide internal directories.