(*args, **kwargs)
| 238 | |
| 239 | @wraps(func) |
| 240 | async def wait_func(*args, **kwargs): |
| 241 | nonlocal __current_size |
| 242 | while __current_size >= max_size: |
| 243 | await asyncio.sleep(waitting_time) |
| 244 | __current_size += 1 |
| 245 | result = await func(*args, **kwargs) |
| 246 | __current_size -= 1 |
| 247 | return result |
| 248 | |
| 249 | return wait_func |
| 250 |
nothing calls this directly
no outgoing calls
no test coverage detected