or if you know the number of jobs you’re awaiting from the start, and don’t mind blocking the main thread (which you might be doing with the while (?)) use CountDownLatch
b
blakelee
05/17/2017, 6:18 PM
ross_a: I'm trying to not block the main thread in one area, then in another area I do want it to block the main thread