gated_coro#
- async langchain_core.runnables.utils.gated_coro(semaphore: Semaphore, coro: Coroutine) Any [source]#
Run a coroutine with a semaphore.
- Parameters:
semaphore (Semaphore) – The semaphore to use.
coro (Coroutine) – The coroutine to run.
- Returns:
The result of the coroutine.
- Return type:
Any