MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / finalize

Method finalize

pkg/wshutil/wshrpc.go:610–615  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

608}
609
610func (handler *RpcRequestHandler) finalize() {
611 handler.callContextCancelFn()
612 if handler.reqId != "" {
613 handler.w.unregisterRpc(handler.reqId, nil)
614 }
615}
616
617func (handler *RpcRequestHandler) callContextCancelFn() {
618 cancelFnPtr := handler.ctxCancelFn.Swap(nil)

Callers 4

SendCancelMethod · 0.95
SendComplexRequestMethod · 0.95
SendCommandMethod · 0.80
SendRpcRequestMethod · 0.80

Calls 2

callContextCancelFnMethod · 0.95
unregisterRpcMethod · 0.80

Tested by

no test coverage detected