Skip to content
class method · added in Ruby 3.4

Ractor.main?

() -> ::boolish
main?

Returns true if the current ractor is the main ractor.

Ruby version changes

  1. 3.4
See also .main .make_shareable .current .new also in 4.1 · 3.4