Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #74478 > unrolled thread

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

Started byValery Khamenya <khamenya@gmail.com>
First post2014-07-15 14:20 +0200
Last post2014-07-15 14:20 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Anything better than asyncio.as_completed() and asyncio.wait() to manage execution of large amount of tasks? Valery Khamenya <khamenya@gmail.com> - 2014-07-15 14:20 +0200

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

FromValery Khamenya <khamenya@gmail.com>
Date2014-07-15 14:20 +0200
SubjectAnything better than asyncio.as_completed() and asyncio.wait() to manage execution of large amount of tasks?
Message-ID<mailman.11834.1405426868.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web