MCPcopy Create free account
hub / github.com/cloudtty/cloudtty / worker

Method worker

pkg/workerpool/worker_pool.go:152–160  ·  view source on GitHub ↗
(stopCh <-chan struct{})

Source from the content-addressed store, hash-verified

150}
151
152func (w *WorkerPool) worker(stopCh <-chan struct{}) {
153 for w.processNextCluster() {
154 select {
155 case <-stopCh:
156 return
157 default:
158 }
159 }
160}
161
162func (w *WorkerPool) processNextCluster() (continued bool) {
163 key, shutdown := w.queue.Get()

Callers 1

runMethod · 0.95

Calls 1

processNextClusterMethod · 0.95

Tested by

no test coverage detected