(self, lifecycle=None)
Run until stop() is called.
Run until stop() is called.
Run until stop () is called .
def run_forever(self, lifecycle=None):
        """Run until stop() is called."""
        if not self._lifecycle:
            self._set_lifecycle(lifecycle if lifecycle else CFLifecycle(self._cfrunloop))

        if self.is_running():
            raise RuntimeError(
                "Recursively calling run_forever is forbidden. "
                "To recursively run the event loop, call run().")

        try:
            self.run()
        finally:
            self.stop()
def run_forever ( self , lifecycle = None ) : if not self . _lifecycle : self . _set_lifecycle ( lifecycle if lifecycle else CFLifecycle ( self . _cfrunloop ) ) if self . is_running ( ) : raise RuntimeError ( "Recursively calling run_forever is forbidden. " "To recursively run the event loop, call run()." ) try : self . run ( ) finally : self . stop ( )