End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Thread.main
Thread.main → thread
thread.c
View on GitHub ↗
static VALUE
rb_thread_s_main(VALUE klass)
{
return rb_thread_main();
}
Returns the main thread.