mirror of
https://github.com/nxshock/gwp.git
synced 2024-11-28 03:41:01 +05:00
Fix comment
This commit is contained in:
parent
928cd97576
commit
54dac42925
2
gwp.go
2
gwp.go
@ -25,7 +25,7 @@ type WorkerPool struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// New creates new pool of workers with specified goroutine count.
|
// New creates new pool of workers with specified goroutine count.
|
||||||
// If specified number of workers less than 1, runtume.NumCPU() is used.
|
// If specified number of workers less than 1, runtime.NumCPU() is used.
|
||||||
func New(threadCount int) *WorkerPool {
|
func New(threadCount int) *WorkerPool {
|
||||||
if threadCount <= 0 {
|
if threadCount <= 0 {
|
||||||
threadCount = runtime.NumCPU()
|
threadCount = runtime.NumCPU()
|
||||||
|
Loading…
Reference in New Issue
Block a user