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