將資料推入佇列 - 推送

q = Queue.new
q << "any object including another queue"
# or
q.push :data
  • 沒有高水位線,佇列可以無限增長。
  • #push 永遠不會阻止