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

Function dequeue

recipes/python-recipes/micro_queue.py:38–43  ·  view source on GitHub ↗
(tr)

Source from the content-addressed store, hash-verified

36
37@fdb.transactional
38def dequeue(tr):
39 item = first_item(tr)
40 if item is None:
41 return None
42 del tr[item.key]
43 return item.value
44
45
46@fdb.transactional

Callers 1

smoke_testFunction · 0.70

Calls 1

first_itemFunction · 0.70

Tested by

no test coverage detected