Lines Matching refs:shutdown
136 self.executor.shutdown(wait=True)
294 self.executor.shutdown()
300 # Test the atexit hook for shutdown of worker threads and processes
322 # Test the atexit hook for shutdown of worker threads and processes
351 self.executor.shutdown()
358 self.executor.shutdown(cancel_futures=True)
379 """shutdown(wait=False) doesn't hang at exit with running futures.
394 t.shutdown(wait=False)
401 """shutdown(wait=True) doesn't hang when a future was submitted and
402 quickly canceled right before shutdown.
411 raise RuntimeError("timed out waiting for shutdown")
422 executor.shutdown(wait=True)
439 self.executor.shutdown()
462 # executor got shutdown.
467 # shutdown with wait=False
471 executor.shutdown(wait=False)
476 # executor got shutdown.
514 t.shutdown(wait=False, cancel_futures=True)
541 self.executor.shutdown()
568 # the shutdown process
575 # executor got shutdown.
580 # shutdown with wait=False
587 executor.shutdown(wait=False)
590 # the shutdown process
597 # shutdown.
826 # Executor.shutdown() and context manager usage is tested by
872 # Issue #12456: race condition at shutdown where trying to post a
876 self.executor.shutdown()
919 self.executor.shutdown(wait=True)
938 executor.shutdown(wait=True)
946 executor.shutdown(wait=True)
1068 mgr.shutdown()
1104 executor.shutdown()
1132 executor.shutdown()
1151 executor.shutdown()
1245 # This should be safe to call executor.shutdown here as all possible
1247 executor.shutdown(wait=True)
1254 self.executor.shutdown(wait=True)
1273 executor.shutdown(wait=True)
1332 # Test that the pool calling shutdown do not cause deadlock
1333 # if a worker fails after the shutdown call.
1334 self.executor.shutdown(wait=True)
1339 executor.shutdown(wait=True)
1344 # Test that the pool calling shutdown with wait=False does not cause
1345 # a deadlock if a task fails at pickle after the shutdown call.
1347 self.executor.shutdown(wait=True)
1358 # Submit a task that fails at pickle and shutdown the executor
1361 executor.shutdown(wait=False)
1365 # Make sure the executor is eventually shutdown and do not leave