MCPcopy Create free account
hub / github.com/EasyIME/PIME / release

Method release

python/python3/tornado/locks.py:480–484  ·  view source on GitHub ↗

Increment the counter and wake one waiter.

(self)

Source from the content-addressed store, hash-verified

478 self._initial_value = value
479
480 def release(self) -> None:
481 """Increment the counter and wake one waiter."""
482 if self._value >= self._initial_value:
483 raise ValueError("Semaphore released too many times")
484 super().release()
485
486
487class Lock(object):

Callers 1

Calls 1

releaseMethod · 0.45

Tested by 1