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

Function GetIsCanceledFromContext

pkg/wshutil/wshrpc.go:93–99  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

91}
92
93func GetIsCanceledFromContext(ctx context.Context) bool {
94 rtn := ctx.Value(wshRpcRespHandlerContextKey{})
95 if rtn == nil {
96 return false
97 }
98 return rtn.(*RpcResponseHandler).IsCanceled()
99}
100
101func GetRpcResponseHandlerFromContext(ctx context.Context) *RpcResponseHandler {
102 rtn := ctx.Value(wshRpcRespHandlerContextKey{})

Callers

nothing calls this directly

Calls 2

ValueMethod · 0.80
IsCanceledMethod · 0.80

Tested by

no test coverage detected