mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(blocking-thread-pool) Add isTerminated convenience function
This commit is contained in:
parent
f8050816ac
commit
4aa47e87f2
@ -120,6 +120,10 @@ public class SimpleBlockingThreadPool {
|
|||||||
return taskCount.get();
|
return taskCount.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isTerminated() {
|
||||||
|
return shutDown && getActiveCount() == 0;
|
||||||
|
}
|
||||||
|
|
||||||
public interface Task {
|
public interface Task {
|
||||||
void run() throws Exception;
|
void run() throws Exception;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user