MCPcopy Index your code
hub / github.com/RustPython/RustPython / wait

Method wait

Lib/multiprocessing/synchronize.py:351–361  ·  view source on GitHub ↗
(self, timeout=None)

Source from the content-addressed store, hash-verified

349 self._flag.acquire(False)
350
351 def wait(self, timeout=None):
352 with self._cond:
353 if self._flag.acquire(False):
354 self._flag.release()
355 else:
356 self._cond.wait(timeout)
357
358 if self._flag.acquire(False):
359 self._flag.release()
360 return True
361 return False
362
363 def __repr__(self):
364 set_status = 'set' if self.is_set() else 'unset'

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected