def run(self, once=False):
self._once = once<EOL>self.start()<EOL>while self.running:<EOL><INDENT>try:<EOL><INDENT>time.sleep(<NUM_LIT:1.0>)<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>self.stop()<EOL>self.join()<EOL><DEDENT><DEDENT>
Runs the reactor in the main thread.