PyDocs

Nav

Networking and Interprocess Communication

Semaphore.acquire

asyncio

async method of Semaphore (source) not WASI
  • Semaphore.acquire()
Acquire a semaphore.

If the internal counter is larger than zero on entry,
decrement it by one and return True immediately.  If it is
zero on entry, block, waiting until some other task has
called release() to make it larger than 0, and then return
True.
0 Examples
No examples for asyncio/Semaphore.acquire.
See Also
No see-alsos for asyncio/Semaphore.acquire
0 Notes
No notes for Semaphore.acquire