package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Dec 9, 2015
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Item interface {
ID() string
Do() bool
Stop()
}
Item represents a simple item in the queue
Queue is a simple item queue
NewQueue returns a new queue
Add tries to Do the item, if it's not possible, add the item to the queue for future tries
func (q *Queue) Process()
Process tries to Do all the items in the queue and remove the items successfully done
Remove an item from the queue
Source Files
¶
Click to show internal directories.
Click to hide internal directories.