Hi,

To answer Luciano's question on as_completed(), I read the source code
of the function. It's not clear to me what happens on timeout.


Should we abort something on timeout? The documentation doesn't
explain if tasks are cancelled or if an exception is set. In the code,
it's clear that the task is not touched. It's probably just a
documentation issue.


Coroutine objects are wrapped into tasks: on timeout, these temporary
tasks may be destroyed before their completion. A warning is emited in
this case. The warning is useless, since the caller doesn't have
access to all these temporary tasks. As gather(), we should probably
set the _log_destroy_pending attribute of these tasks to False. What
do you think?

Victor

Reply via email to