MCPcopy Create free account
hub / github.com/TalkingData/owl / IsEmpty

Method IsEmpty

controller/queue.go:217–221  ·  view source on GitHub ↗

Return true if Queue is empty.

()

Source from the content-addressed store, hash-verified

215
216// Return true if Queue is empty.
217func (q *Queue) IsEmpty() bool {
218 q.mutex.Lock()
219 defer q.mutex.Unlock()
220 return q.isempty()
221}
222
223func (q *Queue) isfull() bool {
224 return (q.maxSize > 0 && q.maxSize <= q.size())

Callers

nothing calls this directly

Calls 1

isemptyMethod · 0.95

Tested by

no test coverage detected