Why is only one of my tasks being cancelled in my python asyncio program? (stackoverflow.com)stack
22 points by iamthebull in stackoverflow.com · 13d ago · stack
Consider this trivial asyncio program and the output. I'm using Python 3.12.3. I ran the program 3 consecutive times initiating a KeyboardInterrupt timed to try and interrupt each of the tasks (i.e. the first time to interrupt task1, the second to interrupt task 2 and the last t…
filed under pythonpython-asyncio