(question, context=None)
| 74 | semaphore = asyncio.Semaphore(self.max_concurrent) |
| 75 | |
| 76 | async def limited_atom(question, context=None): |
| 77 | async with semaphore: |
| 78 | if context is not None: |
| 79 | return await atom(question, context) |
| 80 | else: |
| 81 | return await atom(question) |
| 82 | |
| 83 | tasks = [] |
| 84 |