1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-10-04 00:51:52 +02:00

fix export, add runtime balancer for async tasks

This commit is contained in:
Thomas Wilkerling
2025-03-21 20:34:26 +01:00
parent adde2a9861
commit 019c60da24
52 changed files with 1371 additions and 1327 deletions

View File

@@ -55,6 +55,8 @@ export default function Document(options) {
this.worker = options.worker;
this.priority = options.priority || 4;
// if(SUPPORT_ASYNC){
// // this switch is used by recall of promise callbacks
// this.async = false;
@@ -124,6 +126,8 @@ export default function Document(options) {
} else {
if (options.db) {
this.fastupdate = !1;
// think about to return the promise here
// actually it can be awaited on "await index.db"
this.mount(options.db);
}
}