MCPcopy Create free account
hub / github.com/brmmm3/fastthreadpool / Shutdown

Function Shutdown

fastthreadpool/fastthreadpool.py:56–64  ·  view source on GitHub ↗
(now=True)

Source from the content-addressed store, hash-verified

54
55# noinspection PyPep8Naming
56def Shutdown(now=True):
57 for pool in _pools:
58 if now:
59 pool.shutdown_children()
60 pool.cancel(None, True)
61 pool.shutdown(None, True)
62 else:
63 pool.cancel(None, False)
64 pool.shutdown()
65
66
67atexit.register(Shutdown)

Callers

nothing calls this directly

Calls 3

shutdown_childrenMethod · 0.80
cancelMethod · 0.80
shutdownMethod · 0.80

Tested by

no test coverage detected