MCPcopy Index your code
hub / github.com/pyinvoke/invoke / start_timer

Method start_timer

invoke/runners.py:1087–1093  ·  view source on GitHub ↗

Start a timer to `kill` our subprocess after ``timeout`` seconds.

(self, timeout: int)

Source from the content-addressed store, hash-verified

1085 raise NotImplementedError
1086
1087 def start_timer(self, timeout: int) -> None:
1088 """
1089 Start a timer to `kill` our subprocess after ``timeout`` seconds.
1090 """
1091 if timeout is not None:
1092 self._timer = threading.Timer(timeout, self.kill)
1093 self._timer.start()
1094
1095 def read_proc_stdout(self, num_bytes: int) -> Optional[bytes]:
1096 """

Callers 2

_run_bodyMethod · 0.95

Calls 1

startMethod · 0.45

Tested by

no test coverage detected