mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-16 18:11:03 +00:00
🐠 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…
x
Reference in New Issue
Block a user