Remove all pending jobs from the queue without executing them, block until all currently running jobs complete, and then destroy this thread pool.
Remove all pending jobs from the queue without executing them, block until all currently running jobs complete, and then destroy this thread pool.