MCPcopy
hub / github.com/containerd/containerd / Get

Function Get

pkg/timeout/timeout.go:42–50  ·  view source on GitHub ↗

Get returns the timeout for the provided key

(key string)

Source from the content-addressed store, hash-verified

40
41// Get returns the timeout for the provided key
42func Get(key string) time.Duration {
43 mu.RLock()
44 t, ok := timeouts[key]
45 mu.RUnlock()
46 if !ok {
47 t = DefaultTimeout
48 }
49 return t
50}
51
52// WithContext returns a context with the specified timeout for the provided key
53func WithContext(ctx context.Context, key string) (context.Context, func()) {

Callers 3

DeferContextFunction · 0.92
initFunction · 0.92
WithContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected