mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 10:01:22 +01:00
Limit number of ROOM tasks
This commit is contained in:
@@ -95,7 +95,8 @@ public abstract class DB extends RoomDatabase {
|
||||
public abstract DaoLog log();
|
||||
|
||||
private static DB sInstance;
|
||||
private static ExecutorService executor = Executors.newCachedThreadPool(Helper.foregroundThreadFactory);
|
||||
private static ExecutorService executor = Executors.newFixedThreadPool(
|
||||
Runtime.getRuntime().availableProcessors(), Helper.foregroundThreadFactory);
|
||||
|
||||
private static final String DB_NAME = "fairemail";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user