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

Method stop

invoke/runners.py:1186–1199  ·  view source on GitHub ↗

Perform final cleanup, if necessary. This method is called within a ``finally`` clause inside the main `~.Runner.run` method. Depending on the subclass, it may be a no-op, or it may do things such as close network connections or open files. :returns: ``None

(self)

Source from the content-addressed store, hash-verified

1184 raise NotImplementedError
1185
1186 def stop(self) -> None:
1187 """
1188 Perform final cleanup, if necessary.
1189
1190 This method is called within a ``finally`` clause inside the main
1191 `~.Runner.run` method. Depending on the subclass, it may be a no-op, or
1192 it may do things such as close network connections or open files.
1193
1194 :returns: ``None``
1195
1196 .. versionadded:: 1.0
1197 """
1198 if self._timer:
1199 self._timer.cancel()
1200
1201 def kill(self) -> None:
1202 """

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected