PyDocs

Nav

Concurrent Execution

Semaphore.release

threading

method of Semaphore (source) not WASI
  • Semaphore.release(n=1)
Release a semaphore, incrementing the internal counter by one or more.

When the counter is zero on entry and another thread is waiting for it
to become larger than zero again, wake up that thread.
Changed in 3.9
  • 3.9: Added the n parameter to release multiple waiting threads at once.
0 Examples
No examples for threading/Semaphore.release.
See Also
No see-alsos for threading/Semaphore.release
0 Notes
No notes for Semaphore.release