MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / locked

Method locked

tools/python-3.11.9-amd64/Lib/asyncio/locks.py:359–362  ·  view source on GitHub ↗

Returns True if semaphore cannot be acquired immediately.

(self)

Source from the content-addressed store, hash-verified

357 return f'<{res[1:-1]} [{extra}]>'
358
359 def locked(self):
360 """Returns True if semaphore cannot be acquired immediately."""
361 return self._value == 0 or (
362 any(not w.cancelled() for w in (self._waiters or ())))
363
364 async def acquire(self):
365 """Acquire a semaphore.

Callers 2

__repr__Method · 0.95
acquireMethod · 0.95

Calls 2

anyFunction · 0.50
cancelledMethod · 0.45

Tested by

no test coverage detected