exit
exit(
code?:number):never
Defined in: packages/pythonlib/src/sys.ts:131
Exit from Python (terminate the process).
Parameters
| Parameter | Type | Description |
|---|---|---|
code? | number | Optional exit status code (default: 0 for success) |
Returns
never
Throws
This function never returns; it terminates the process.
Example
exit() // Exit with successexit(1) // Exit with error code 1