Skip to content

Instantly share code, notes, and snippets.

@auser
Created July 15, 2009 02:39
Show Gist options
  • Select an option

  • Save auser/147403 to your computer and use it in GitHub Desktop.

Select an option

Save auser/147403 to your computer and use it in GitHub Desktop.
require "rubygems"
require 'mq'
EM.run {
amq = MQ.new
EM.add_periodic_timer(1) { amq.queue("noises").publish("moo") }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment