MCPcopy Index your code
hub / github.com/python/cpython / locked

Method locked

Lib/asyncio/locks.py:86–88  ·  view source on GitHub ↗

Return True if lock is acquired.

(self)

Source from the content-addressed store, hash-verified

84 return f'<{res[1:-1]} [{extra}]>'
85
86 def locked(self):
87 """Return True if lock is acquired."""
88 return self._locked
89
90 async def acquire(self):
91 """Acquire a lock.

Callers 11

test_lockMethod · 0.95
test_lockMethod · 0.95
test_cancel_raceMethod · 0.95
test_context_managerMethod · 0.95
fMethod · 0.95
__repr__Method · 0.45
waitMethod · 0.45
notifyMethod · 0.45

Calls

no outgoing calls

Tested by 8

test_lockMethod · 0.76
test_lockMethod · 0.76
test_cancel_raceMethod · 0.76
test_context_managerMethod · 0.76
fMethod · 0.76