(self)
return loop
Create a new event loop and return it.
Create a new event loop and return it.
Create a new event loop and return it .
def new_event_loop(self):
        """Create a new event loop and return it."""
        if not self._default_loop and threading.current_thread() == threading.main_thread():
            loop = self.get_default_loop()
        else:
            loop = CFEventLoop(self._lifecycle)
        loop._policy = self

        return loop
def new_event_loop ( self ) : if not self . _default_loop and threading . current_thread ( ) == threading . main_thread ( ) : loop = self . get_default_loop ( ) else : loop = CFEventLoop ( self . _lifecycle ) loop . _policy = self return loop