Pushing Data into a Queue - push
suggest changeq = Queue.new
q << "any object including another queue"
# or
q.push :data
Queuehas no size limit, so it can grow without bound.#pushon aQueuedoes not block. ASizedQueuecan block when it is full.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents