WaitDone stops until all jobs on the queue have been processed.
()
| 83 | |
| 84 | // WaitDone stops until all jobs on the queue have been processed. |
| 85 | func (wq *WorkQueue) WaitDone() { |
| 86 | wq.jobs.Wait() |
| 87 | } |
| 88 | |
| 89 | // Stop stops the job queue and the workers. |
| 90 | func (wq *WorkQueue) Stop() { |