From 0d84279c1d58d5508a0643335de33bba8c4db01f Mon Sep 17 00:00:00 2001 From: BobTheBuidler Date: Tue, 10 Oct 2023 04:20:13 +0000 Subject: [PATCH] fix: missing kwargs --- a_sync/utils/as_completed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a_sync/utils/as_completed.py b/a_sync/utils/as_completed.py index 97ef3205..83ae8905 100644 --- a/a_sync/utils/as_completed.py +++ b/a_sync/utils/as_completed.py @@ -27,7 +27,7 @@ def as_completed(fs, *, timeout: Optional[float] = None, return_exceptions: bool if return_exceptions: raise NotImplementedError return ( - as_completed_mapping(fs) if isinstance(fs, Mapping) + as_completed_mapping(fs, timeout=timeout, return_exceptions=return_exceptions, aiter=aiter, tqdm=tqdm, **tqdm_kwargs) if isinstance(fs, Mapping) else ASyncIterator.wrap(__yield_as_completed(fs, tqdm=tqdm, **tqdm_kwargs)) if aiter else tqdm_asyncio.as_completed(fs, timeout=timeout, **tqdm_kwargs) if tqdm else asyncio.as_completed(fs, timeout=timeout)