(ctx context.Context)
| 91 | } |
| 92 | |
| 93 | func 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 | |
| 101 | func GetRpcResponseHandlerFromContext(ctx context.Context) *RpcResponseHandler { |
| 102 | rtn := ctx.Value(wshRpcRespHandlerContextKey{}) |
nothing calls this directly
no test coverage detected