MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / stop

Method stop

sqlchain/observer/worker.go:149–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147}
148
149func (w *subscribeWorker) stop() {
150 w.l.Lock()
151 defer w.l.Unlock()
152
153 if !w.isStopped() {
154 // stop
155 close(w.stopCh)
156 w.wg.Wait()
157 }
158}
159
160func (w *subscribeWorker) isStopped() bool {
161 if w.stopCh == nil {

Callers

nothing calls this directly

Calls 2

isStoppedMethod · 0.95
WaitMethod · 0.80

Tested by

no test coverage detected