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

Method retrySendTimeout

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

Source from the content-addressed store, hash-verified

823}
824
825func (w *WshRpc) retrySendTimeout(resId string) {
826 done := func() bool {
827 w.Lock.Lock()
828 defer w.Lock.Unlock()
829 if w.ServerDone {
830 return true
831 }
832 select {
833 case w.CtxDoneCh <- resId:
834 return true
835 default:
836 return false
837 }
838 }
839 for {
840 if done() {
841 return
842 }
843 time.Sleep(100 * time.Millisecond)
844 }
845}
846
847func (w *WshRpc) sendRespWithBlockMessage(msg RpcMessage) {
848 respCh, rd := w.getResponseCh(msg.ResId)

Callers 1

registerRpcMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected