Ruby SizedQueue Functions
EditRocket provides the following information on SizedQueue functions in the Ruby source code builder.
deq(*args) - "Alias for #pop"
enq(obj) - "Alias for #push"
max=(max) - Sets the maximum size of the queue.
max() - Returns the maximum size of the queue.
new(max) - Creates a fixed-length queue with a maximum size of max.
num_waiting() - Returns the number of threads waiting on the queue.
pop(*args) - Retrieves data from the queue and runs a waiting thread, if any.
push(obj) - Pushes obj to the queue. If there is no space left in the queue, waits until space becomes available.
shift(*args) - "Alias for #pop"