class Concurrent::BlockingRingBuffer

def capacity

Returns:
  • (Integer) - the capacity of the buffer
def capacity
  @mutex.synchronize { @buffer.capacity }
end