mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-27 08:01:50 +01:00
Use cached thread pool for simple task
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user