mirror of https://github.com/panjf2000/ants.git
Fix typos
This commit is contained in:
parent
ea787e5c0b
commit
d3e44612e2
|
@ -186,10 +186,10 @@ type Option func(opts *Options)
|
||||||
|
|
||||||
// Options contains all options which will be applied when instantiating a ants pool.
|
// Options contains all options which will be applied when instantiating a ants pool.
|
||||||
type Options struct {
|
type Options struct {
|
||||||
// ExpiryDuration set the expired time (second) of every worker.
|
// ExpiryDuration sets the expired time (second) of every worker.
|
||||||
ExpiryDuration time.Duration
|
ExpiryDuration time.Duration
|
||||||
|
|
||||||
// PreAlloc indicate whether to make memory pre-allocation when initializing Pool.
|
// PreAlloc indicates whether to make memory pre-allocation when initializing Pool.
|
||||||
PreAlloc bool
|
PreAlloc bool
|
||||||
|
|
||||||
// Max number of goroutine blocking on pool.Submit.
|
// Max number of goroutine blocking on pool.Submit.
|
||||||
|
|
|
@ -186,10 +186,10 @@ type Option func(opts *Options)
|
||||||
|
|
||||||
// Options contains all options which will be applied when instantiating a ants pool.
|
// Options contains all options which will be applied when instantiating a ants pool.
|
||||||
type Options struct {
|
type Options struct {
|
||||||
// ExpiryDuration set the expired time (second) of every worker.
|
// ExpiryDuration sets the expired time (second) of every worker.
|
||||||
ExpiryDuration time.Duration
|
ExpiryDuration time.Duration
|
||||||
|
|
||||||
// PreAlloc indicate whether to make memory pre-allocation when initializing Pool.
|
// PreAlloc indicates whether to make memory pre-allocation when initializing Pool.
|
||||||
PreAlloc bool
|
PreAlloc bool
|
||||||
|
|
||||||
// Max number of goroutine blocking on pool.Submit.
|
// Max number of goroutine blocking on pool.Submit.
|
||||||
|
|
4
ants.go
4
ants.go
|
@ -85,10 +85,10 @@ type Option func(opts *Options)
|
||||||
|
|
||||||
// Options contains all options which will be applied when instantiating a ants pool.
|
// Options contains all options which will be applied when instantiating a ants pool.
|
||||||
type Options struct {
|
type Options struct {
|
||||||
// ExpiryDuration set the expired time of every worker.
|
// ExpiryDuration sets the expired time of every worker.
|
||||||
ExpiryDuration time.Duration
|
ExpiryDuration time.Duration
|
||||||
|
|
||||||
// PreAlloc indicate whether to make memory pre-allocation when initializing Pool.
|
// PreAlloc indicates whether to make memory pre-allocation when initializing Pool.
|
||||||
PreAlloc bool
|
PreAlloc bool
|
||||||
|
|
||||||
// Max number of goroutine blocking on pool.Submit.
|
// Max number of goroutine blocking on pool.Submit.
|
||||||
|
|
Loading…
Reference in New Issue