code: def halt(self, message, emitter, *args, **kwargs):
          '''Halt the execution of the loop.'''
          self.process_event((FINISH, self, (), {}))
          global_event_queue.clear(f halt(self, message, emitter, *args, **kwargs):
          '''Halt the execution of the loop.'''
          self.process_event((FINISH, self, (), {}))
          global_event_queue.clear()
docs: Halt the execution of the loop.