Ruby 3.4 リファレンスマニュアル

instance method Thread::SizedQueue#empty?

empty? -> boolRuby 2.5.0 から[permalink][rdoc][edit]

キューが空の時、真を返します。