type Job func()
Represents user request, function which should be executed in some worker.
Will make pool of gorouting workers. numWorkers - how many workers will be created for this pool queueLen - how many jobs can we accept until we block
Returned object contains JobQueue reference, which you can use to send job to pool.
In case you are using WaitAll fn, you should call this method every time your job is done.
If you are not using WaitAll then we assume you have your own way of synchronizing.
Will release resources used by pool
Will wait for all jobs to finish.
How many jobs we should wait when calling WaitAll. It is using WaitGroup Add/Done/Wait