class Queue
Ruby on Rails 4.1.16
Since v4.0.13Threadsafe, fair, FIFO queue. Meant to be used by ConnectionPool with which it shares a Monitor. But could be a generic Queue.
The Queue in stdlib’s ‘thread’ could replace this class except stdlib’s doesn’t support waiting with a timeout.
Inherits from
Methods (defined here)
- # add
- # any_waiting?
- # clear
- # delete
- # num_waiting
- # poll
- self. new
Private methods
(6)
Implementation detail — not part of the public API.
- # any?
- # can_remove_no_wait?
- # no_wait_poll
- # remove
- # synchronize
- # wait_poll
Methods (inherited)
From Object (22)
- # <
- # acts_like?
- # blank?
- # create_fixtures
- # deep_dup
- # destroy
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_json_with_active_support_encoder
- # to_param
- # to_query
- # try
- # try!
- # unescape
- # with_options
- self. table_name_prefix