Exit script (os.exit)
Declaration
os.exit()
Notes
os.exit
is a built-in Lua function to terminate a process. In XXTouch, it terminates the logical script process.
Calling it in any thread will end the current script process immediately; all threads and listeners will stop at once.
Example
os.exit()