(handles, interval, output_path)
| 70 | |
| 71 | print("Example 2") |
| 72 | async def run_tasks_simpler(handles, interval, output_path): |
| 73 | with open(output_path, "wb") as output: # Changed |
| 74 | |
| 75 | async def write_async(data): |
| 76 | output.write(data) # Changed |
| 77 | |
| 78 | async with asyncio.TaskGroup() as group: |
| 79 | for handle in handles: |
| 80 | group.create_task( |
| 81 | tail_async(handle, interval, write_async) |
| 82 | ) |
| 83 | |
| 84 | |
| 85 | print("Example 3") |
nothing calls this directly
no test coverage detected