Ruby Language Queue Pushing Data into a Queue - #push


Example

q = Queue.new
q << "any object including another queue"
# or
q.push :data
  • There is no high water mark, queues can infinitely grow.
  • #push never blocks