In general, forcibly stopping or destroying threads is always contraindicated because you cannot guarantee the free release of resources and locks that the thread supports. So Nick is right, a variable indicating that the time to close the thread is generally better.
, , , . Thread # - , . , , . , JRuby Thread #. , , .