MCPcopy
hub / github.com/containerd/containerd / Set

Function Set

pkg/timeout/timeout.go:35–39  ·  view source on GitHub ↗

Set the timeout for the key

(key string, t time.Duration)

Source from the content-addressed store, hash-verified

33
34// Set the timeout for the key
35func Set(key string, t time.Duration) {
36 mu.Lock()
37 timeouts[key] = t
38 mu.Unlock()
39}
40
41// Get returns the timeout for the provided key
42func Get(key string) time.Duration {

Callers 6

initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
NewFunction · 0.92
initFunction · 0.92
initFunction · 0.92

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected