Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
importasyncioclassMyException(Exception):passasyncdefasync_fn():awaitasyncio.sleep(0)raiseMyExceptionasyncdefmain():task=asyncio.current_task()try:asyncwithasyncio.TaskGroup()astg:tg.create_task(async_fn())try:awaitasyncio.sleep(1)exceptasyncio.CancelledError:pass except*MyException:print("done!")print(f"{task.cancelling()=} should be 0")asyncio.run(main())
Metadata
Metadata
Assignees
Labels
Projects
Status
Done