(self, wait=True)
Shutdown the executor and free all resources. If `wait` is True then
        wait until all pending futures are executed or cancelled.
Shutdown the executor and free all resources. If `wait` is True then
        wait until all pending futures are executed or cancelled.
Shutdown the executor and free all resources . If wait is True then wait until all pending futures are executed or cancelled .
def shutdown(self, wait=True):
        """
        Shutdown the executor and free all resources. If `wait` is True then
        wait until all pending futures are executed or cancelled.
        """
        with self._state_lock:
            self._shutdown = True
            futures = list(self._futures)

        if wait:
            concurrent.futures.wait(futures)
def shutdown ( self , wait = True ) : with self . _state_lock : self . _shutdown = True futures = list ( self . _futures ) if wait : concurrent . futures . wait ( futures )