4 ms·
Yes, exactly this scenario.
by fullstop 5y ago
Yes, exactly this scenario.
- Too 5y ago:) Its not that strange actually. If you compare it to threads, where you shoot off a thread which you never join(). It’s exactly the same scenario. Any thread which doesn’t have a join needs a watchdog. Or register the unhandled exception handler. Can’t remember if threads do this by default. Asyncio tasks for sure don’t, and they can’t really do it either, since a task in error state could be saved for later use for legitimate reasons. Closest you get is the warning printed to log about tasks that got GCd without ever being awaited, if you enable ASYNCIO_DEBUG=1