640 |
|
setCompletion(NORMAL); |
641 |
|
} |
642 |
|
|
643 |
+ |
/** |
644 |
+ |
* @throws CancellationException {@inheritDoc} |
645 |
+ |
*/ |
646 |
|
public final V get() throws InterruptedException, ExecutionException { |
647 |
|
quietlyJoin(); |
648 |
|
if (Thread.interrupted()) |
658 |
|
return getRawResult(); |
659 |
|
} |
660 |
|
|
661 |
+ |
/** |
662 |
+ |
* @throws CancellationException {@inheritDoc} |
663 |
+ |
*/ |
664 |
|
public final V get(long timeout, TimeUnit unit) |
665 |
|
throws InterruptedException, ExecutionException, TimeoutException { |
666 |
|
Thread t = Thread.currentThread(); |