(*args, **kwargs)
| 282 | |
| 283 | @wraps(func) |
| 284 | async def wait_func(*args, **kwargs): |
| 285 | nonlocal __current_size |
| 286 | while __current_size >= max_size: |
| 287 | await asyncio.sleep(waitting_time) |
| 288 | __current_size += 1 |
| 289 | result = await func(*args, **kwargs) |
| 290 | __current_size -= 1 |
| 291 | return result |
| 292 | |
| 293 | return wait_func |
| 294 |
nothing calls this directly
no outgoing calls
no test coverage detected