You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 pool.Pause()) and undoing it (by pool.Resume())?
You can simply implement Pause() and Resume() in some wrapping code. Just keep track of the state (running & paused) and if paused stop submitting new tasks to the pool (or stop reading tasks from a channel). And after resuming continue to submit tasks to the pool...
IMO this is userland logic and there is no need for this library to handle such things.
in our case, we need a
pool.Pause()
to pause all jobs, and usepool.Resume()
to restart the jobs.The text was updated successfully, but these errors were encountered: