Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
60
def
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
66
def
smoke_test():
Callers
1
dequeue
Function · 0.70
Calls
2
range
Method · 0.45
get_range
Method · 0.45
Tested by
no test coverage detected