(request_func_input, pbar)
| 446 | semaphore = asyncio.Semaphore(max_concurrency) if max_concurrency else None |
| 447 | |
| 448 | async def limited_request_func(request_func_input, pbar): |
| 449 | if semaphore is None: |
| 450 | return await request_func(request_func_input=request_func_input, pbar=pbar) |
| 451 | async with semaphore: |
| 452 | return await request_func(request_func_input=request_func_input, pbar=pbar) |
| 453 | |
| 454 | tasks: list[asyncio.Task] = [] |
| 455 | benchmark_start_time = time.perf_counter() |