Quit¶
Request remote protocol shutdown. For normal client cleanup, exit the connection context so its owned resources are also released.
- class rmote.tools.quit.Quit[source]¶
Bases:
ToolSignal the remote process to exit cleanly.
Exit a disposable child process rather than the documentation runner:
>>> import subprocess >>> result = subprocess.run( ... [sys.executable, "-c", "import asyncio; from rmote.tools import Quit; asyncio.run(Quit.exit(7))"], ... capture_output=True, ... ) >>> result.returncode 7
- async static exit(code=0)[source]¶
Exit the remote process with code.
- Parameters:
code (
getint) – Exit status code passed tosys.exit(). Defaults to 0.- Return type: