[concurrency-interest] PooledExecutor question

Vitaliy Geraymovych Vitaliy Geraymovych <vitaliy.home@gmail.com>
Thu, 14 Oct 2004 10:53:44 -0400


Hi All,

I am having problems using PooledExecutor. After submitting Runnables
into the pool I need to wait until all of them are completed. Call to
shutdownAfterProcessingCurrentlyQueuedTasks after submitting all tasks
doesn't seem to help.

Problem is happening when I am running JUnit . JUnit terminates before
all tasks are completed and as the result several tasks remain
unfinished.

Is there a way to wait until PooledExecutor finishes all tasks
submitted into the queue?

Thanks,
Vitaliy