java - How FutureTask also acts like a latch? -


a quote jcip:

"futuretask acts latch."

  • how ?

futuretask.get() wait completion of task countdownlatch.await(). both blocking methods, have overloaded variant timeout.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -