def run_to_completion(self, max_iterations: int=10000):
    '\n        Advance time in steps until nothing is scheduled\n        '
    counter = 0
    while (self._events and (counter < max_iterations)):
        self.advance()
        counter += 1
    if self._events:
        raise TimeoutError('Failed to complete in {} iterations'.format(max_iterations))
Advance time in steps until nothing is scheduled
def run_to_completion(self, max_iterations: int=10000):
    '\n        \n        '
    counter = 0
    while (self._events and (counter < max_iterations)):
        self.advance()
        counter += 1
    if self._events:
        raise TimeoutError('Failed to complete in {} iterations'.format(max_iterations))