================ @@ -374,6 +374,15 @@ def wait_for_event(self, filter=None, timeout=None): ) return None + def wait_for_events(self, events, timeout=None): + """Wait for a list of events in `events` in any order. + Return the events not hit before the timeout expired""" + events = events[:] # Make a copy to avoid modifying the input + while events: + event = self.wait_for_event(filter=events, timeout=timeout) + events.remove(event["event"]) ---------------- JDevlieghere wrote:
If we hit a timeout, wont `event` be `None`? https://github.com/llvm/llvm-project/pull/137278 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits