Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct {
Object interface{}
// Async can let workers handle this task concurrently, but
// it will make this task unordered
Async bool
}
type TaskQueue ¶
type TaskQueue struct {
Workers []Worker
// contains filtered or unexported fields
}
func NewTaskQueue ¶
func (*TaskQueue) Add ¶
Add is the method to add task in queue, one task will be handled by all workers
type UniQueue ¶
type UniQueue struct {
// contains filtered or unexported fields
}
func NewUniQueue ¶
func NewUniQueue() (uq *UniQueue)
Click to show internal directories.
Click to hide internal directories.