(task: asyncio.Future)
| 103 | semaphore = asyncio.Semaphore(n) |
| 104 | |
| 105 | async def sem_task(task: asyncio.Future) -> Any: |
| 106 | async with semaphore: |
| 107 | return await task |
| 108 | |
| 109 | return await asyncio.gather( |
| 110 | *(sem_task(task) for task in tasks), return_exceptions=return_exceptions |
no outgoing calls
no test coverage detected