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

Method as_completed

pager_lib/tqdm/asyncio.py:58–68  ·  view source on GitHub ↗

Wrapper for `asyncio.as_completed`.

(cls, fs, *, loop=None, timeout=None, total=None, **tqdm_kwargs)

Source from the content-addressed store, hash-verified

56
57 @classmethod
58 def as_completed(cls, fs, *, loop=None, timeout=None, total=None, **tqdm_kwargs):
59 """
60 Wrapper for `asyncio.as_completed`.
61 """
62 if total is None:
63 total = len(fs)
64 kwargs = {}
65 if version_info[:2] < (3, 10):
66 kwargs['loop'] = loop
67 yield from cls(asyncio.as_completed(fs, timeout=timeout, **kwargs),
68 total=total, **tqdm_kwargs)
69
70 @classmethod
71 async def gather(cls, *fs, loop=None, timeout=None, total=None, **tqdm_kwargs):

Callers 1

gatherMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected