class

TS::Queue(T)

Inherits Reference < Object

A thread-safe queue backed by an exclusive lock on the queue array

Constructors

Instance methods

<<(value : T) : self

Add item to the end of the queue

Source
add(value : T) : self

Add item to the end of the queue

Source
empty?

Return true if queue is empty

Source
shift?

Shift item from the top of the queue, or nil? if empty

Source