4 ms·
Concurrency is one of the harder bits to learn to do properly, but the CountDownLatch always strikes me as one of the concurrency constructs that is intuitive t
by Freak_NL 10y ago
Concurrency is one of the harder bits to learn to do properly, but the CountDownLatch always strikes me as one of the concurrency constructs that is intuitive to grasp.
Because these are usually declared final in Java in order to use them in a Thread launched from another class, I just can't seem to resist putting this comment above their declaration:
/* It's the */
final CountDownLatch latch = …
- koolba 10y agoGreat job! Now every time I use a CountDownLatch that song is going to be stuck in my head. ^/s!