MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __anext__

Method __anext__

pager_lib/tqdm/asyncio.py:39–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 return self
38
39 async def __anext__(self):
40 try:
41 if self.iterable_awaitable:
42 res = await self.iterable_next()
43 else:
44 res = self.iterable_next()
45 self.update()
46 return res
47 except StopIteration:
48 self.close()
49 raise StopAsyncIteration
50 except BaseException:
51 self.close()
52 raise
53
54 def send(self, *args, **kwargs):
55 return self.iterable.send(*args, **kwargs)

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected