Skip to content

Glossary: Multi-Agent Systems

asyncio.Semaphore

Also written: Semaphore, semaphore

A counter of free places that limits how many agents run at once. `async with gate:` waits for a free place and gives it back at the end of the block, which keeps you under the API's rate limits.

Where the book teaches it

Related terms

Rate limitFan-outasyncio