v4.0.2 - Show latest stable - Superclass: Object

Threadsafe, 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.

Files

  • activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb