mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
[211616] Fixed Query.get(timeout) implementation.
This commit is contained in:
parent
ad27060ba1
commit
3fef8680c9
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ abstract public class Query<V> extends DsfRunnable
|
||||||
public V get() throws InterruptedException, ExecutionException { return fSync.doGet(); }
|
public V get() throws InterruptedException, ExecutionException { return fSync.doGet(); }
|
||||||
|
|
||||||
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
|
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
|
||||||
return fSync.doGet();
|
return fSync.doGet(unit.toNanos(timeout));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue