or if you know the number of jobs you’re awaiting ...
# announcements
r
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
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