End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Thread#abort_on_exception
thr.abort_on_exception → true or false
thread.c
View on GitHub ↗
static VALUE
rb_thread_abort_exc(VALUE thread)
{
return rb_thread_ptr(thread)->abort_on_exception ? Qtrue : Qfalse;
}
Returns the status of the thread-local “abort on exception” condition for this thr.
The default is false.
See also abort_on_exception=.
There is also a class level method to set this for all threads, see ::abort_on_exception.
See also
.abort_on_exception
.abort_on_exception=
#abort_on_exception=
#[]=
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1