MCPcopy
hub / github.com/grafana/dskit / asyncQueueProcessLoop

Method asyncQueueProcessLoop

cache/async_queue.go:47–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func (q *asyncQueue) asyncQueueProcessLoop() {
48 defer q.workers.Done()
49
50 for {
51 select {
52 case op := <-q.queueCh:
53 op()
54 case <-q.stopCh:
55 return
56 }
57 }
58}

Callers 1

newAsyncQueueFunction · 0.95

Calls 1

DoneMethod · 0.65

Tested by

no test coverage detected