This commit is contained in:
cyberpwn
2021-08-25 08:42:46 -04:00
parent d52d70a014
commit 3f730ead84
35 changed files with 1452 additions and 1506 deletions

View File

@@ -127,13 +127,9 @@ public class J {
}
public static <T> T attemptResult(NastySupplier<T> r) {
try
{
try {
return r.get();
}
catch(Throwable e)
{
} catch (Throwable e) {
return null;
}
}

View File

@@ -25,7 +25,7 @@ import java.util.concurrent.atomic.AtomicInteger;
public abstract class QueueJob<T> implements Job {
final KList<T> queue;
protected int totalWork;
private AtomicInteger completed;
private final AtomicInteger completed;
public QueueJob() {
totalWork = 0;