Created
July 16, 2011 19:25
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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