Thread STOP!

There is no way to safely interrupt an arbitrary block of code. - jvns / Why Ruby’s Timeout is dangerous (and Thread.raise is terrifying)

the only way I could get it working reliably was with a subprocess - HN / Taskserver-yduf

see also

Written on June 3, 2024, Last update on October 17, 2024
thread signal ruby c++ java error yduf blog-code