MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / __anext__

Method __anext__

acouchbase/datastructures.py:1082–1095  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1080 return self
1081
1082 async def __anext__(self):
1083 if self._iter is False:
1084 list_ = await self._get()
1085 self._full_queue = (v for v in list_.content_as[list])
1086 self._iter = True
1087
1088 try:
1089 val = next(self._full_queue)
1090 # yield to the event loop
1091 await asyncio.sleep(0)
1092 return val
1093 except StopIteration:
1094 self._iter = False
1095 raise StopAsyncIteration

Callers

nothing calls this directly

Calls 2

_getMethod · 0.95
sleepMethod · 0.45

Tested by

no test coverage detected