Perhaps it\'s too late at night, but I can\'t think of a nice way to do this.
I\'ve started a bunch of asynchronous downloads, and I want to wait until they all comp
Check out the CountdownLatch class in this magazine article.
Update: now covered by the framework since version 4.0, CountdownEvent class.