method

exit

v1_8_7_72 - Show latest stable - Class: Thread
exit()
public

Terminates thr and schedules another thread to be run, returning the terminated Thread. If this is the main thread, or the last thread, exits the process.