1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-31 19:41:19 +00:00

Limit number of ROOM tasks

This commit is contained in:
M66B 2019-06-07 10:33:19 +02:00
parent 9d1be95154
commit c167024212

View file

@ -95,7 +95,8 @@ public abstract class DB extends RoomDatabase {
public abstract DaoLog log(); public abstract DaoLog log();
private static DB sInstance; 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"; private static final String DB_NAME = "fairemail";