MCPcopy
hub / github.com/grpc/grpc-go / newContextWithLocalKey

Function newContextWithLocalKey

benchmark/primitives/context_test.go:125–127  ·  view source on GitHub ↗
(parent context.Context)

Source from the content-addressed store, hash-verified

123type ctxKey struct{}
124
125func newContextWithLocalKey(parent context.Context) context.Context {
126 return context.WithValue(parent, ctxKey{}, nil)
127}
128
129var ck = ctxKey{}
130

Callers

nothing calls this directly

Calls 1

WithValueMethod · 0.80

Tested by

no test coverage detected