Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkerGroup ¶
type WorkerGroup struct { WorkGroup []*WorkerList Length int }
根据uid进行投递任务,同一用户任务顺序执行
func NewWorkGroup ¶
func NewWorkGroup(groupNum int, c interface{}) *WorkerGroup
func (*WorkerGroup) Push ¶
func (wg *WorkerGroup) Push(uid int, f func(i interface{}))
type WorkerList ¶
type WorkerList struct {
// contains filtered or unexported fields
}
func NewWorkerList ¶
func NewWorkerList(maxGoroutines int, c interface{}) *WorkerList
func (*WorkerList) Close ¶
func (w *WorkerList) Close()
func (*WorkerList) Process ¶
func (w *WorkerList) Process()
func (*WorkerList) Push ¶
func (w *WorkerList) Push(f func(i interface{}))
Click to show internal directories.
Click to hide internal directories.