(self, loop)
Set the event loop.

        As a side effect, if a child watcher was set before, then calling
        .set_event_loop() from the main thread will call .attach_loop(loop) on
        the child watcher.
Set the event loop.
Set the event loop .
def set_event_loop(self, loop):
        """Set the event loop.

        As a side effect, if a child watcher was set before, then calling
        .set_event_loop() from the main thread will call .attach_loop(loop) on
        the child watcher.
        """

        super().set_event_loop(loop)

        if (self._watcher is not None and
                threading.current_thread() is threading.main_thread()):
            self._watcher.attach_loop(loop)
def set_event_loop ( self , loop ) : super ( ) . set_event_loop ( loop ) if ( self . _watcher is not None and threading . current_thread ( ) is threading . main_thread ( ) ) : self . _watcher . attach_loop ( loop )