On this page
Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.3
Thread::SizedQueue
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 15
Ruby version changes 3
-
3.3
-
Thread::SizedQueue#freezenow raisesTypeError. [Bug #17146]
-
-
3.2
-
Thread::SizedQueue#pop(timeout: sec) is added. [Feature #18774] -
Thread::SizedQueue#push(timeout: sec) is added. [Feature #18944]
-