MCPcopy Create free account
hub / github.com/cloudbase/garm / Stop

Method Stop

websocket/websocket.go:161–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159}
160
161func (h *Hub) Stop() error {
162 h.mux.Lock()
163 defer h.mux.Unlock()
164
165 if !h.running {
166 return nil
167 }
168
169 h.running = false
170 h.Close()
171 return h.Wait()
172}
173
174func (h *Hub) Wait() error {
175 if !h.running {

Callers 2

runMethod · 0.95
mainFunction · 0.95

Calls 4

CloseMethod · 0.95
WaitMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected