instance method
Thread#abort_on_exception=
(::boolish abort_on_exception) -> untyped
thr.abort_on_exception= boolean → true or false
thread.c
View on GitHub ↗
static VALUE
rb_thread_abort_exc_set(VALUE thread, VALUE val)
{
rb_thread_ptr(thread)->abort_on_exception = RTEST(val);
return val;
}
When set to true, if this thr is aborted by an exception, the raised exception will be re-raised in the main thread.
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
#add_trace_func
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0