mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 02:48:23 +01:00
Fix memory usage by batching syncTasks
This commit is contained in:
@@ -845,7 +845,10 @@ type WritableInterface = {
|
||||
|
||||
removeSyncTaskById: (id: string) => void;
|
||||
saveSyncTasks: (tasks: Array<SyncTaskType>) => void;
|
||||
getAllSyncTasks: () => Array<SyncTaskType>;
|
||||
dequeueOldestSyncTasks: (previousRowId: number | null) => {
|
||||
tasks: Array<SyncTaskType>;
|
||||
lastRowId: number | null;
|
||||
};
|
||||
|
||||
getAllUnprocessedIds: () => Array<string>;
|
||||
getUnprocessedByIdsAndIncrementAttempts: (
|
||||
|
||||
Reference in New Issue
Block a user