Anything better than asyncio.as_completed() and asyncio.wait() to manage execution of large amount of tasks?

Valery Khamenya khamenya at gmail.com
Tue Jul 15 08:20:40 EDT 2014


Hi,

both asyncio.as_completed() and asyncio.wait() work with lists only. No
generators are accepted. Are there anything similar to those functions that
pulls Tasks/Futures/coroutines one-by-one and processes them in a limited
task pool?

I have gazillion of Tasks, and do not want to instantiate them all at once,
but to instantiate and to address them one by one as the running tasks are
completed.

best regards
--
Valery
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140715/64442a19/attachment.html>


More information about the Python-list mailing list