Andy Pan
Andy Pan
If you want to get the result from task that is submitted to pool, you can use `chan`.
What did you mean by pausing and resuming jobs? I don't think that `ants` should interfere with the internal logic, or you were talking about `ants` intercepting new tasks (by...
Could you describe the process of this bug step by step?
It seems that you're trying to make the goroutine of `purgePeriodically` quit once the `pool.Release()` is called, however, what's wrong about this goroutine quitting only after all other worker goroutines...
Why does `ants` need this?
**Just because the fact that we can do, doesn't mean we should do**. I'm afraid you'll have to prove that this PR is necessary for users, BTW, I also believe...
Why bother when we already have https://github.com/panjf2000/ants/blob/master/pool_func.go?
Sorry, I don't get your point here, would you give me one case where the current API doesn't work and yours does?
You can define a `struct` which contains all your args and use this struct as the single arg of `pf`, then restore it to struct from an interface in `pf`...
Then I'm out of solutions, maybe I should start considering refactor `pool_func` and make it accept variable arguments like `func NewPoolWithFunc(size int, pf func(...interface{}), options ...Option)`