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

Method _check_timeout

tools/python-3.11.9-amd64/Lib/subprocess.py:1247–1256  ·  view source on GitHub ↗

Convenience for checking if a timeout has expired.

(self, endtime, orig_timeout, stdout_seq, stderr_seq,
                       skip_check_and_raise=False)

Source from the content-addressed store, hash-verified

1245
1246
1247 def _check_timeout(self, endtime, orig_timeout, stdout_seq, stderr_seq,
1248 skip_check_and_raise=False):
1249 """Convenience for checking if a timeout has expired."""
1250 if endtime is None:
1251 return
1252 if skip_check_and_raise or _time() > endtime:
1253 raise TimeoutExpired(
1254 self.args, orig_timeout,
1255 output=b''.join(stdout_seq) if stdout_seq else None,
1256 stderr=b''.join(stderr_seq) if stderr_seq else None)
1257
1258
1259 def wait(self, timeout=None):

Callers 1

_communicateMethod · 0.95

Calls 2

TimeoutExpiredClass · 0.85
joinMethod · 0.45

Tested by

no test coverage detected