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

Function withRespHandler

pkg/wshutil/wshrpc.go:73–75  ·  view source on GitHub ↗
(ctx context.Context, handler *RpcResponseHandler)

Source from the content-addressed store, hash-verified

71}
72
73func withRespHandler(ctx context.Context, handler *RpcResponseHandler) context.Context {
74 return context.WithValue(ctx, wshRpcRespHandlerContextKey{}, handler)
75}
76
77func GetWshRpcFromContext(ctx context.Context) *WshRpc {
78 rtn := ctx.Value(wshRpcContextKey{})

Callers 1

handleRequestInternalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected