Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine implement a concurrent engine. You can use Engine do many tasks concurrent.
func New ¶
func New( workerNum int, newWorkerFunc NewWorkerFunc, ) *Engine
type NewWorkerFunc ¶
type NewWorkerFunc func() Worker
NewWorkerFunc represents the method to create a practical Worker.
Click to show internal directories.
Click to hide internal directories.