MCPcopy Create free account
hub / github.com/apple/foundationdb / empty

Method empty

layers/containers/highcontention/queue.py:112–114  ·  view source on GitHub ↗

Test whether the queue is empty.

(self, tr)

Source from the content-addressed store, hash-verified

110
111 @fdb.transactional
112 def empty(self, tr):
113 """Test whether the queue is empty."""
114 return self._getFirstItem(tr) is None
115
116 @fdb.transactional
117 def peek(self, tr):

Callers 1

queue_testFunction · 0.95

Calls 1

_getFirstItemMethod · 0.95

Tested by

no test coverage detected