Browse Source

Use cached thread pool for simple task

main
M66B 6 years ago
parent
commit
c75079a5ce
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/src/main/java/eu/faircode/email/SimpleTask.java

+ 1
- 1
app/src/main/java/eu/faircode/email/SimpleTask.java View File

@ -51,7 +51,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
private Bundle args = null;
private Result stored = null;
private ExecutorService executor = Executors.newFixedThreadPool(10, new ThreadFactory() {
private ExecutorService executor = Executors.newCachedThreadPool(new ThreadFactory() {
@Override
public Thread newThread(@NonNull Runnable runnable) {
Thread thread = new Thread(runnable);


Loading…
Cancel
Save