class EventMachine::Synchrony::AMQP::Channel

def initialize(*params, &block)

def initialize(*params, &block)
  f = Fiber.current
  super(*params, &EM::Synchrony::AMQP.sync_cb(f))
  channel, open_ok = Fiber.yield
  raise Error.new unless open_ok.is_a?(::AMQ::Protocol::Channel::OpenOk)
  channel
end

def queue!(name, opts = {})

def queue!(name, opts = {})
  queue = Queue.new(self, name, opts)
  register_queue(queue)
end