class Rack::AMQP::Client::Synchronizer
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/rack/amqp/client.rb, line 18 def initialize @mutex = Mutex.new super end
Public Instance Methods
client(*args)
click to toggle source
# File lib/rack/amqp/client.rb, line 23 def client(*args) @mutex.synchronize do # TODO this probably doesn't help anything here @mgr ||= Manager.new(*args) end end