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

Method IsClosed

tools/cache/heap.go:302–309  ·  view source on GitHub ↗

IsClosed returns true if the queue is closed.

()

Source from the content-addressed store, hash-verified

300
301// IsClosed returns true if the queue is closed.
302func (h *Heap) IsClosed() bool {
303 h.lock.RLock()
304 defer h.lock.RUnlock()
305 if h.closed {
306 return true
307 }
308 return false
309}
310
311// NewHeap returns a Heap which can be used to queue up items to process.
312func NewHeap(keyFn KeyFunc, lessFn LessFunc) *Heap {

Callers 1

TestHeap_CloseFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestHeap_CloseFunction · 0.76