MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / Close

Method Close

controller/controller.go:237–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235}
236
237func (c *Controller) Close() {
238 if !c.state.CompareAndSwap(stateRunning, stateClosed) {
239 return
240 }
241
242 c.suspend()
243 close(c.readyCh)
244 close(c.closeCh)
245 c.wg.Wait()
246}

Callers

nothing calls this directly

Calls 1

suspendMethod · 0.95

Tested by

no test coverage detected