Skip to content
On this page

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class · Ruby 4.1

Thread::SizedQueue

< Thread::Queue 11 instance methods 1 class methods

This class represents queues of specified size capacity. The push operation may be blocked if the capacity is full.

See Thread::Queue for an example of how a Thread::SizedQueue works.

Class methods 1

Instance methods 11

Ruby version changes 3

  1. 3.3
  2. 3.2