MCPcopy
hub / github.com/aceld/zinx / RemoveCloseCallback

Method RemoveCloseCallback

znet/ws_connection.go:622–629  ·  view source on GitHub ↗
(handler, key interface{})

Source from the content-addressed store, hash-verified

620}
621
622func (s *WsConnection) RemoveCloseCallback(handler, key interface{}) {
623 if s.isClosed {
624 return
625 }
626 s.closeCallbackMutex.Lock()
627 defer s.closeCallbackMutex.Unlock()
628 s.closeCallback.Remove(handler, key)
629}
630
631func (s *WsConnection) InvokeCloseCallbacks() {
632 s.closeCallbackMutex.RLock()

Callers

nothing calls this directly

Calls 1

RemoveMethod · 0.65

Tested by

no test coverage detected