syncification

This commit is contained in:
zadam
2020-06-20 12:31:38 +02:00
parent 30062d687f
commit 88348c560c
97 changed files with 1673 additions and 1700 deletions

View File

@@ -191,7 +191,7 @@ function setImmediatePromise() {
});
}
async function findSimilarNotes(noteId) {
function findSimilarNotes(noteId) {
const results = [];
let i = 0;
@@ -211,7 +211,7 @@ async function findSimilarNotes(noteId) {
i++;
if (i % 200 === 0) {
await setImmediatePromise();
setImmediatePromise();
}
}