()
| 47 | errors: list[Exception] = [] |
| 48 | |
| 49 | async def try_run(): |
| 50 | try: |
| 51 | async with manager.run(): |
| 52 | # Simulate some work |
| 53 | await anyio.sleep(0.1) |
| 54 | except RuntimeError as e: |
| 55 | errors.append(e) |
| 56 | |
| 57 | # Try to run concurrently |
| 58 | async with anyio.create_task_group() as tg: |