How do you end a long running Lua script?
I have two threads, one runs the main program and the other controls a user supplied Lua script. I need to kill the thread
The way to end a script is to raise an error by calling error. However, if the user has called the script via pcall then this error will be caught.
error
pcall