mirror of
https://github.com/nxshock/gwp.git
synced 2025-07-01 00:13:39 +05:00
Fix comment
This commit is contained in:
parent
928cd97576
commit
54dac42925
1 changed files with 1 additions and 1 deletions
2
gwp.go
2
gwp.go
|
@ -25,7 +25,7 @@ type WorkerPool struct {
|
|||
}
|
||||
|
||||
// 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 {
|
||||
if threadCount <= 0 {
|
||||
threadCount = runtime.NumCPU()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue