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

Function first_item

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

Source from the content-addressed store, hash-verified

58
59@fdb.transactional
60def first_item(tr):
61 r = queue.range()
62 for kv in tr.get_range(r.start, r.stop, limit=1):
63 return kv
64
65
66def smoke_test():

Callers 1

dequeueFunction · 0.70

Calls 2

rangeMethod · 0.45
get_rangeMethod · 0.45

Tested by

no test coverage detected