(self)
Internal implementation of run using the CoreFoundation event loop.
Internal implementation of run using the CoreFoundation event loop.
Internal implementation of run using the CoreFoundation event loop .
def run(self):
        """Internal implementation of run using the CoreFoundation event loop."""
        recursive = self.is_running()
        if not recursive and hasattr(events, "_get_running_loop") and events._get_running_loop():
            raise RuntimeError('Cannot run the event loop while another loop is running')

        if not recursive:
            self._running = True
            if hasattr(events, "_set_running_loop"):
                events._set_running_loop(self)

        try:
            self._lifecycle.start()
        finally:
            if not recursive:
                self._running = False
                if hasattr(events, "_set_running_loop"):
                    events._set_running_loop(None)
def run ( self ) : recursive = self . is_running ( ) if not recursive and hasattr ( events , "_get_running_loop" ) and events . _get_running_loop ( ) : raise RuntimeError ( 'Cannot run the event loop while another loop is running' ) if not recursive : self . _running = True if hasattr ( events , "_set_running_loop" ) : events . _set_running_loop ( self ) try : self . _lifecycle . start ( ) finally : if not recursive : self . _running = False if hasattr ( events , "_set_running_loop" ) : events . _set_running_loop ( None )