We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 151ed14 commit aeb33e3Copy full SHA for aeb33e3
1 file changed
ultimatepython/advanced/async.py
@@ -95,13 +95,12 @@ async def advanced_async_patterns() -> None:
95
96
# Task Groups - structured concurrency (Python 3.11+)
97
async def task_group_example():
98
- results = []
99
try:
100
async with asyncio.TaskGroup() as tg:
101
# Start multiple tasks in a group
102
for i in range(5):
103
tg.create_task(start_job(f"task_{i}", _DELAY_SMALL))
104
- except Exception as e:
+ except Exception:
105
# TaskGroup propagates exceptions from child tasks
106
pass
107
0 commit comments