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

Method release

python/python3/tornado/locks.py:540–550  ·  view source on GitHub ↗

Unlock. The first coroutine in line waiting for `acquire` gets the lock. If not locked, raise a `RuntimeError`.

(self)

Source from the content-addressed store, hash-verified

538 return self._block.acquire(timeout)
539
540 def release(self) -> None:
541 """Unlock.
542
543 The first coroutine in line waiting for `acquire` gets the lock.
544
545 If not locked, raise a `RuntimeError`.
546 """
547 try:
548 self._block.release()
549 except ValueError:
550 raise RuntimeError("release unlocked lock")
551
552 def __enter__(self) -> None:
553 raise RuntimeError("Use `async with` instead of `with` for Lock")

Callers 7

__aexit__Method · 0.95
test_acquire_releaseMethod · 0.95
test_acquire_fifoMethod · 0.95
test_multi_releaseMethod · 0.95
__exit__Method · 0.45
releaseMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_acquire_releaseMethod · 0.76
test_acquire_fifoMethod · 0.76
test_multi_releaseMethod · 0.76