MCPcopy
hub / github.com/kubernetes/client-go / Close

Method Close

tools/cache/heap.go:132–137  ·  view source on GitHub ↗

Close the Heap and signals condition variables that may be waiting to pop items from the heap.

()

Source from the content-addressed store, hash-verified

130// Close the Heap and signals condition variables that may be waiting to pop
131// items from the heap.
132func (h *Heap) Close() {
133 h.lock.Lock()
134 defer h.lock.Unlock()
135 h.closed = true
136 h.cond.Broadcast()
137}
138
139// Add inserts an item, and puts it in the queue. The item is updated if it
140// already exists.

Callers 3

TestHeapEmptyPopFunction · 0.95
TestHeap_CloseFunction · 0.95
TestHeapAddAfterCloseFunction · 0.95

Calls

no outgoing calls

Tested by 3

TestHeapEmptyPopFunction · 0.76
TestHeap_CloseFunction · 0.76
TestHeapAddAfterCloseFunction · 0.76