Commit Graph

3 Commits

Author SHA1 Message Date
John Reese 507253fe14 Deprecate loop parameter to asyncio functions
The asyncio `loop` parameter has been deprecated since Python 3.8
and is removed in Python 3.10. This deprecates use of the loop
parameter in aioitertools, and the parameters will be removed
with or after the release of aioitertools v0.11.0.

Adds a decorator `deprecated_wait_param()` that emits deprecation
warnings if the decorated functions are passed the `loop` kwarg.

Adds `@deprecated_wait_param` decorator to `as_completed()`,
`gather()`, and `gather_iter()` functions. The `loop` parameter
is no longer used, even if passed, so that aioitertools will work
on Python 3.10 runtimes.

Fixes #84
2022-02-05 00:31:56 -08:00
Bryan Forbes b8a14c2bee Improve dependencies for Python 3.8+ 2021-01-04 19:41:24 -06:00
John Reese 8ad29078c0 Add typing_extensions to dependencies 2020-05-05 19:54:17 -07:00