End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Thread.current
Thread.current → thread
thread.c
View on GitHub ↗
static VALUE
thread_s_current(VALUE klass)
{
return rb_thread_current();
}
Returns the currently executing thread.
Example
Thread.current #=> #<Thread:0x401bdf4c run>
See also
.abort_on_exception=
.each_caller_location
.abort_on_exception
.exit
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0