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
- How to stop Linux threads cleanly / HN - Thread cancellation, a false hope
Written on June 3, 2024, Last update on August 25, 2024
thread
signal
ruby
c++
java
error
yduf
blog-code