Ruby Language Thread How to kill a thread


Example

You call use Thread.kill or Thread.terminate:

thr = Thread.new { ... }
Thread.kill(thr)