| 3 | import "sync" |
| 4 | |
| 5 | type AsyncTaskPool struct { |
| 6 | tasks chan func() |
| 7 | wg sync.WaitGroup |
| 8 | } |
| 9 | |
| 10 | // NewAsyncTaskPool creates a task pool with a fixed capacity |
| 11 | func NewAsyncTaskPool(maxWorkers int) *AsyncTaskPool { |
nothing calls this directly
no outgoing calls
no test coverage detected