Too Long; Didn't Read
Concurrency in Golang And WorkerPool [Part 2] The first part of this article explored how we can build a workerpool to optimize the performance of the concurrency structs of golang. In this article, we will build a robust solution according to the learning from the first part so that we can use this solution in any application. We make a generic workerpool package that can handle tasks with workers based on the desired concurrency. In themethod, we range over thefor incoming tasks to process inside a goroutine.