Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Thread#abort_on_exception
() -> bool
thr.abort_on_exception → true or false
thread.c
View on GitHub ↗
static VALUE
rb_thread_abort_exc(VALUE thread)
{
return RBOOL(rb_thread_ptr(thread)->abort_on_exception);
}
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.3 · 3.2 · 3.1 · 3.0