class Concurrent::RingBuffer

def peek

Returns:
  • (Object) - the first available value and without removing it from the buffer. If buffer is empty returns nil
def peek
  @buffer[@first]
end