Hacker News new | ask | show | jobs
by aserafini 1334 days ago
Even if you want to ‘fire and forget’, it’s still essential to keep a reference to the task, otherwise it can be garbage collected mid-execution:

https://docs.python.org/3/library/asyncio-task.html#asyncio....

1 comments

Wow! Did not know this, guess I’ve got a couple fixes to make…