langchain_core.runnables.utils
.gated_coro¶
- async langchain_core.runnables.utils.gated_coro(semaphore: Semaphore, coro: Coroutine) Any [source]¶
使用信号量运行一个协程。 参数:
semaphore:要使用的信号量。 coro:要运行的协程。
- 返回:
协程的结果。
- Parameters
semaphore (Semaphore) –
coro (Coroutine) –
- Return type
Any