Skip to content

Instantly share code, notes, and snippets.

@michaelklishin
Created July 16, 2011 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelklishin/1086664 to your computer and use it in GitHub Desktop.
Save michaelklishin/1086664 to your computer and use it in GitHub Desktop.
How AMQP::RPC used to work in 0.6.x days. DO NOT CONSIDER THIS A GOOD IDEA.
# EM.run do
# server = AMQP::Channel.new.rpc('hash table node', Hash)
#
# client = AMQP::Channel.new.rpc('hash table node')
# client[:now] = Time.now
# client[:one] = 1
#
# client.values do |res|
# p 'client', :values => res
# end
#
# client.keys do |res|
# p 'client', :keys => res
# EM.stop_event_loop
# end
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment