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:
4
dist/module-debug/document.js
vendored
4
dist/module-debug/document.js
vendored
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user