mirror of https://github.com/panjf2000/ants.git
🐠 Adapt worker for explicit functions
This commit is contained in:
parent
a6a76fa753
commit
1d33782287
|
@ -35,7 +35,7 @@ type Worker struct {
|
||||||
pool *Pool
|
pool *Pool
|
||||||
|
|
||||||
// task is a job should be done.
|
// task is a job should be done.
|
||||||
task chan f
|
task chan func()
|
||||||
|
|
||||||
// recycleTime will be update when putting a worker back into queue.
|
// recycleTime will be update when putting a worker back into queue.
|
||||||
recycleTime time.Time
|
recycleTime time.Time
|
||||||
|
|
Loading…
Reference in New Issue