MCPcopy Index your code
hub / github.com/containerd/containerd / WithContext

Function WithContext

pkg/timeout/timeout.go:53–56  ·  view source on GitHub ↗

WithContext returns a context with the specified timeout for the provided key

(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

51
52// WithContext returns a context with the specified timeout for the provided key
53func WithContext(ctx context.Context, key string) (context.Context, func()) {
54 t := Get(key)
55 return context.WithTimeout(ctx, t)
56}
57
58// All returns all keys and their timeouts
59func All() map[string]time.Duration {

Callers 8

collectMethod · 0.92
collectMethod · 0.92
loadShimTaskFunction · 0.92
cleanupShimMethod · 0.92
cleanupAfterDeadShimFunction · 0.92
waitShutdownMethod · 0.92
CreateMethod · 0.92
getProcessStateFunction · 0.92

Calls 1

GetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…