ThreadPoolExecutor to be in idle state, which means that there are no more tasks
in the Queue or currently executed by one of the threads.ThreadPoolExecutor class.CountDownLatch except that it only requires a single signal to fire.Copyright © 2017 The International Consortium of Investigative Journalists. All rights reserved.