feat(core): run indexer in worker (#7418)

This commit is contained in:
liuyi
2024-07-04 15:37:26 +08:00
committed by GitHub
parent 5c1f78afd4
commit 555f203be6
15 changed files with 717 additions and 362 deletions
+3 -1
View File
@@ -18,6 +18,7 @@ import {
timer,
} from 'rxjs';
import { MANUALLY_STOP } from '../utils';
import type { LiveData } from './livedata';
/**
@@ -107,7 +108,8 @@ export function fromPromise<T>(
.catch(error => {
subscriber.error(error);
});
return () => abortController.abort('Aborted');
return () => abortController.abort(MANUALLY_STOP);
});
}