Wrapper for `asyncio.as_completed`.
(cls, fs, *, loop=None, timeout=None, total=None, **tqdm_kwargs)
| 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): |