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:
parent
9d1be95154
commit
c167024212
1 changed files with 2 additions and 1 deletions
|
@ -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";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue