java - Checking whether all tasks in ThreadPoolExecutor are completed -


how can check whether tasks submitted threadpoolexecutor completed?

new tasks can added submitted tasks, can't call shutdown followed awaittermination nor invokeall, ignore these new tasks.

yourthreadpoolexecutor.getactivecount(); return 0 when tasks have completed.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -