0

This is a followup for my previous question enter link description here

Now the problem is that I can't "block" (Future.get) in my main thread because it must continue with its work, but I do need the threads to signal it some how...

4

1 回答 1

0

为什么不直接打电话Future.isDone()从你的主线程定期调用,如果完成,Future.get()结果呢?这将引发原始异常。

于 2013-06-07T08:37:57.573 回答