Skip to content
class method

Thread.exit

() -> untyped
Thread.exit → thread

Terminates the currently running thread and schedules another thread to be run.

If this thread is already marked to be killed, ::exit returns the Thread.

If this is the main thread, or the last thread, exit the process.

See also #exit .each_caller_location .fork .current also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0