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

Method getResponseCh

pkg/wshutil/wshrpc.go:449–460  ·  view source on GitHub ↗
(resId string)

Source from the content-addressed store, hash-verified

447}
448
449func (w *WshRpc) getResponseCh(resId string) (chan *RpcMessage, *rpcData) {
450 if resId == "" {
451 return nil, nil
452 }
453 w.Lock.Lock()
454 defer w.Lock.Unlock()
455 rd := w.RpcMap[resId]
456 if rd == nil {
457 return nil, nil
458 }
459 return rd.ResCh, rd
460}
461
462func (w *WshRpc) SetServerImpl(serverImpl ServerImpl) {
463 validateServerImpl(serverImpl)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected