New submission from Andrew Svetlov <andrew.svet...@gmail.com>:

Current behavior has a subtle pitfall.
The function returns a list of *existing* tasks (not removed by decref or 
explicit call).
If user's code has a strong reference to some task the task will be in return 
list for unpredictable amount of time, even if the task was done.

Returning only *alive* tasks can make a function result more predictable (`not 
task.done()`).

Opinions?

----------
components: asyncio
messages: 310378
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: asyncio.all_tasks() should return only non-finished tasks.
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32610>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to