#58 - Using a pool of web workers

This commit is contained in:
Simon Cambier
2022-10-18 22:20:26 +02:00
parent 31bf65283f
commit 4c212a798e
3 changed files with 55 additions and 25 deletions

View File

@@ -180,10 +180,6 @@ export async function indexPDFs() {
await cacheManager.writeMinisearchIndex(Search.minisearchInstance)
})
)
// pdfQueue.add(async () => {
// await addToIndexAndCache(file)
// await cacheManager.writeMinisearchIndex(Search.minisearchInstance)
// })
}
await Promise.all(input)
// await pdfQueue.onEmpty()