Message 377797 - Python tracker (original) (raw)

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.