MCPcopy 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
readyMethod · 0.45

Calls 2

acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected