Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultWorkerNum = runtime.GOMAXPROCS(0) * 2
DefaultWorkerNum default number of goroutines is twice the number of GOMAXPROCS
Functions ¶
This section is empty.
Types ¶
type AsyncResult ¶
type AsyncResult struct {
Value interface{}
Err error
}
AsyncResult result struct
type IAsync ¶
type IAsync interface {
AddTask(task Task)
Result() <-chan AsyncResult
}
IAsync interface
Click to show internal directories.
Click to hide internal directories.