| 34 | } |
| 35 | |
| 36 | type workerPoolExecutor struct { |
| 37 | serverWorkerChannel chan func() |
| 38 | closeOnce sync.Once |
| 39 | |
| 40 | fallbackTotal prometheus.Counter |
| 41 | } |
| 42 | |
| 43 | func NewWorkerPool(name string, numWorkers int, reg prometheus.Registerer) AsyncExecutor { |
| 44 | wp := &workerPoolExecutor{ |
nothing calls this directly
no outgoing calls
no test coverage detected