Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'starling'
- starling = Starling.new('127.0.0.1:22122')
- starling.set('my_queue', 12345)
- require 'starling'
- loop do
- starling.get('my_queue') # this will block until something gets added to the queue
- # do stuff
- end
Add Comment
Please, Sign In to add comment