CompletionService.take().isDone() always true?
Posted
by jfager
on Stack Overflow
See other posts from Stack Overflow
or by jfager
Published on 2010-04-09T19:29:19Z
Indexed on
2010/04/09
19:33 UTC
Read the original article
Hit count: 254
Is it safe to assume that
java.util.concurrent.CompletionService.take().isDone()
will always return true? If so, why does take() return a Future, rather than the value directly? If not, what does "completed task" as used in the documentation mean?
© Stack Overflow or respective owner