mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 00:23:09 +02:00
Log executor pending tasks
This commit is contained in:
@@ -215,7 +215,7 @@ public class Helper {
|
||||
}
|
||||
|
||||
private static class ThreadPoolExecutorEx extends ThreadPoolExecutor {
|
||||
String name;
|
||||
private String name;
|
||||
|
||||
public ThreadPoolExecutorEx(
|
||||
String name,
|
||||
@@ -231,6 +231,11 @@ public class Helper {
|
||||
protected void beforeExecute(Thread t, Runnable r) {
|
||||
Log.d("Executing " + t.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void afterExecute(Runnable r, Throwable t) {
|
||||
Log.d("Executed " + name + " pending=" + getQueue().size());
|
||||
}
|
||||
}
|
||||
|
||||
private static class PriorityFuture<T> implements RunnableFuture<T> {
|
||||
|
||||
Reference in New Issue
Block a user