panjf2000 / ants

🐜🐜🐜 ants is the most powerful and reliable pooling solution for Go.
https://ants.andypan.me/
MIT License
12.83k stars 1.36k forks source link

How do I get the results of my tasks #230

Closed iGen1us closed 1 year ago

iGen1us commented 2 years ago

Hello:) when i use “_ = p.Invoke(task)” , I want to do something while the task is being completed, how do it?

panjf2000 commented 2 years ago

If you want to get the result from task that is submitted to pool, you can use chan.