asyncio
orangewarrior at gmail.com
orangewarrior at gmail.com
Fri Mar 27 05:32:51 EDT 2015
Hi,
On Friday, March 27, 2015 at 1:55:36 AM UTC-7, Marko Rauhamaa wrote:
> Łukasz Ligowski <orangewarrior at gmail.com>:
>
> > Is there a way to prune finished tasks (I tried forcing gc) or I do
> > something wrong?
>
> Guessing that you need to call asyncio.wait() or asyncio.wait_for() to
> get rid of the zombies.
>
> (Apparently the loop object keeps references to completed tasks. I'm not
> sure this design choice is necessary.)
Should I launch tasks differently? Waiting for task that is done returns that task in done subset but it still lingers in list of all tasks...
Best regards,
L
More information about the Python-list
mailing list