(self)
Close the event loop.

        This clears the queues and shuts down the executor,
        but does not wait for the executor to finish.

        The event loop must not be running.
Close the event loop.
Close the event loop .
def close(self):
        """Close the event loop.

        This clears the queues and shuts down the executor,
        but does not wait for the executor to finish.

        The event loop must not be running.
        """
        while self._accept_futures:
            future = self._accept_futures.pop()
            future.cancel()

        while self._timers:
            handler = self._timers.pop()
            handler.cancel()

        super().close()
def close ( self ) : while self . _accept_futures : future = self . _accept_futures . pop ( ) future . cancel ( ) while self . _timers : handler = self . _timers . pop ( ) handler . cancel ( ) super ( ) . close ( )