Skip to content

Glossary: Multi-Agent Systems

asyncio.wait_for

Also written: wait_for

Raises `TimeoutError` if a coroutine takes longer than the given number of seconds. With a thread, the waiting stops but the thread keeps running, so limits are also needed inside the agent.

Where the book teaches it

Related terms

Timeoutasyncio.to_thread