mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +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();
|
||||
}
|
||||
|
||||
public boolean isTerminated() {
|
||||
return shutDown && getActiveCount() == 0;
|
||||
}
|
||||
|
||||
public interface Task {
|
||||
void run() throws Exception;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user