Method Thread():quit() Foundation
Terminate the thread of this thread object
:quit( [<xResult>], [<nRestart>] ) --> NIL
|QUIT_NORESTART *)||The instance variable :interval is set to NIL before the thread is terminated|
|QUIT_RESTART||The instance variable :interval remains unchanged|
The return value is always NIL.
The :quit() method immediately terminates execution of program code of the threead of this thread object. Before the thread returns, the :atEnd() method is called and the program code defined by :atEnd is executed, if specified. The :quit() method is special in the Thread class because it can be called only for that Thread object which maintains the current thread. This is equivalent to the expression ThreadObject():quit(). It is not possible to use :quit() for terminating a thread directly from another thread. Terminating a running thread from outside can only be done indirectly.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.