MCPcopy Index your code
hub / github.com/cortexproject/cortex / workerPoolExecutor

Struct workerPoolExecutor

pkg/util/worker_pool.go:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected