Permalink
Browse files

Updated readme.

  • Loading branch information...
1 parent e3361a1 commit 55808a23f4a309d70d7f7f23974c6615f833366a @treeder treeder committed Sep 10, 2012
Showing with 11 additions and 9 deletions.
  1. +11 −9 README.md
View
@@ -26,29 +26,31 @@ You can have as many queues as you want, each with their own unique set of messa
Now you can use it:
-**Push** a message on the queue:
+**Post** a message on the queue:
@queue.post("hello world!")
-**Pop** a message off the queue:
+**Get** a message off the queue:
msg = @queue.get()
puts msg.body
-**Poll** for messages:
-
- @queue.poll do |msg|
- puts msg.body
- end
-
When you pop/get a message from the queue, it will NOT be deleted. It will eventually go back onto the queue after
a timeout if you don't delete it (default timeout is 10 minutes).
**Delete** a message from the queue:
msg.delete # or @queue.delete(msg.id)
-Delete a message from the queue when you're done with it.
+Be sure to delete a message from the queue when you're done with it.
+
+**Poll** for messages:
+
+ @queue.poll do |msg|
+ puts msg.body
+ end
+
+Polling will automatically delete the message at the end of the block.
Queue Information
=================

0 comments on commit 55808a2

Please sign in to comment.