Ruby 3.3 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Thread::SizedQueueクラス > length
length -> Integer
size -> Integer
キューの長さを返します。