Pool provides a pool of goroutines that can execute any Worker tasks that are submitted.
| 13 | // Pool provides a pool of goroutines that can execute any Worker |
| 14 | // tasks that are submitted. |
| 15 | type Pool struct { |
| 16 | work chan Worker |
| 17 | wg sync.WaitGroup |
| 18 | } |
| 19 | |
| 20 | // New creates a new work pool. |
| 21 | func New(maxGoroutines int) *Pool { |
nothing calls this directly
no outgoing calls
no test coverage detected