[issue33533] Provide an async-generator version of as_completed

Justin Arthur report at bugs.python.org
Fri Oct 2 00:36:27 EDT 2020


Justin Arthur <justinarthur at gmail.com> added the comment:

I've added a new PR, PR 22491. This one has as_completed returning an iterator and includes tests for both the old and new style.

I see a trivial amount of latency added in extra call stack over Guido's original implementation. Should we decide to deprecate the plain-iterator-of-awaitables form, we can possibly regain that latency in refactoring this as an asynchronous generator.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33533>
_______________________________________


More information about the Python-bugs-list mailing list