MCPcopy
hub / github.com/wavetermdev/waveterm / WaitForRouteCommand

Method WaitForRouteCommand

pkg/wshrpc/wshserver/wshserver.go:499–504  ·  view source on GitHub ↗
(ctx context.Context, data wshrpc.CommandWaitForRouteData)

Source from the content-addressed store, hash-verified

497}
498
499func (ws *WshServer) WaitForRouteCommand(ctx context.Context, data wshrpc.CommandWaitForRouteData) (bool, error) {
500 waitCtx, cancelFn := context.WithTimeout(ctx, time.Duration(data.WaitMs)*time.Millisecond)
501 defer cancelFn()
502 err := wshutil.DefaultRouter.WaitForRegister(waitCtx, data.RouteId)
503 return err == nil, nil
504}
505
506func (ws *WshServer) EventRecvCommand(ctx context.Context, data wps.WaveEvent) error {
507 return nil

Callers

nothing calls this directly

Calls 1

WaitForRegisterMethod · 0.80

Tested by

no test coverage detected