9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 03:29:06 +00:00

Fix noise explorer

This commit is contained in:
cyberpwn
2021-08-22 03:45:48 -04:00
parent 4a6d58c36e
commit ae79f9be66
2 changed files with 1 additions and 28 deletions

View File

@@ -110,31 +110,4 @@ public class BurstExecutor {
}
}
}
public boolean complete(long maxDur) {
if(!multicore)
{
return true;
}
synchronized (futures) {
if (futures.isEmpty()) {
return true;
}
try {
try {
CompletableFuture.allOf(futures.toArray(new CompletableFuture[0])).get(maxDur, TimeUnit.MILLISECONDS);
} catch (TimeoutException e) {
return false;
}
futures.clear();
} catch (InterruptedException | ExecutionException e) {
e.printStackTrace();
Iris.reportError(e);
}
}
return false;
}
}