def next_event(self): event = lib.polar_next_query_event(self.ptr) process_messages(self.next_message) event = check_result(event) return QueryEvent(event)
def next_event(self): return QueryEvent(check_result(lib.polar_next_query_event(self.ptr)))