def in_executor():
    self.handling_command = True
    try:
        if (self.callback is not None):
            self.callback(self, command)
    finally:
        self.server.call_from_executor(done)
def in_executor():
    self.handling_command = True
    try:
        if (self.callback is not None):
            self.callback(self, command)
    finally:
        self.server.call_from_executor(done)