(self)
Schedule the shutdown of the default executor.
Schedule the shutdown of the default executor.
Schedule the shutdown of the default executor .
async def shutdown_default_executor(self):
        """Schedule the shutdown of the default executor."""
        self._executor_shutdown_called = True
        if self._default_executor is None:
            return
        future = self.create_future()
        thread = threading.Thread(target=self._do_shutdown, args=(future,))
        thread.start()
        try:
            await future
        finally:
            thread.join()
async def shutdown_default_executor ( self ) : self . _executor_shutdown_called = True if self . _default_executor is None : return future = self . create_future ( ) thread = threading . Thread ( target = self . _do_shutdown , args = ( future , ) ) thread . start ( ) try : await future finally : thread . join ( )