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

Method sleep

Lib/test/test_sched.py:24–31  ·  view source on GitHub ↗
(self, t)

Source from the content-addressed store, hash-verified

22
23 # increase the time but not beyond the established limit
24 def sleep(self, t):
25 assert t >= 0
26 with self._cond:
27 t += self._time
28 while self._stop < t:
29 self._time = self._stop
30 self._cond.wait()
31 self._time = t
32
33 # advance time limit for user code
34 def advance(self, t):

Callers 15

mulFunction · 0.45
plusFunction · 0.45
mulFunction · 0.45
plusFunction · 0.45
find_deviceFunction · 0.45
find_pidFunction · 0.45
retrieve_with_retriesFunction · 0.45
mainFunction · 0.45
_start_serverFunction · 0.45
demo2Function · 0.45
_waitMethod · 0.45
connect_pipeMethod · 0.45

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected