(self)
return self._local._loop
Get the event loop for the current context.

        Returns an instance of EventLoop or raises an exception.
Get the event loop for the current context.
Get the event loop for the current context .
def get_event_loop(self):
        """Get the event loop for the current context.

        Returns an instance of EventLoop or raises an exception.
        """
        if (self._local._loop is None and
                not self._local._set_called and
                threading.current_thread() is threading.main_thread()):
            self.set_event_loop(self.new_event_loop())

        if self._local._loop is None:
            raise RuntimeError('There is no current event loop in thread %r.'
                               % threading.current_thread().name)

        return self._local._loop
def get_event_loop ( self ) : if ( self . _local . _loop is None and not self . _local . _set_called and threading . current_thread ( ) is threading . main_thread ( ) ) : self . set_event_loop ( self . new_event_loop ( ) ) if self . _local . _loop is None : raise RuntimeError ( 'There is no current event loop in thread %r.' % threading . current_thread ( ) . name ) return self . _local . _loop