Module spin_sdk.wit.imports.wasi_cli_exit_0_3_0
Functions
def exit(status: componentize_py_types.Ok[None] | componentize_py_types.Err[None]) ‑> None-
Expand source code
def exit(status: Result[None, None]) -> None: """ Exit the current instance and any linked instances. """ raise NotImplementedErrorExit the current instance and any linked instances.
def exit_with_code(status_code: int) ‑> None-
Expand source code
def exit_with_code(status_code: int) -> None: """ Exit the current instance and any linked instances, reporting the specified status code to the host. The meaning of the code depends on the context, with 0 usually meaning "success", and other values indicating various types of failure. This function does not return; the effect is analogous to a trap, but without the connotation that something bad has happened. """ raise NotImplementedErrorExit the current instance and any linked instances, reporting the specified status code to the host.
The meaning of the code depends on the context, with 0 usually meaning "success", and other values indicating various types of failure.
This function does not return; the effect is analogous to a trap, but without the connotation that something bad has happened.