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

Using 'OR' and 'AND' in SQL Server -

python - Finding intersection between ellipse and a line -

php - Laravel 4, Basset, Less - preg_match compilation failed -