def wait(self, allowed_methods=None, timeout=None):
method_sig, args, content = self.connection._wait_method(<EOL>self.channel_id, allowed_methods, timeout)<EOL>return self.dispatch_method(method_sig, args, content)<EOL>
Wait for a method that matches our allowed_methods parameter (the
        default value of None means match any method), and dispatch to it.