Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ is_set
Method
is_set
Lib/multiprocessing/synchronize.py:334–339 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
332
self._flag = ctx.Semaphore(0)
333
334
def
is_set(self):
335
with
self._cond:
336
if
self._flag.acquire(False):
337
self._flag.release()
338
return
True
339
return
False
340
341
def
set(self):
342
with
self._cond:
Callers
2
__repr__
Method · 0.95
ready
Method · 0.45
Calls
2
acquire
Method · 0.45
release
Method · 0.45
Tested by
no test coverage detected