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

This commit is contained in:
EYHN
2024-07-02 09:18:08 +00:00
parent 27d0fc5108
commit c62d79ab14
13 changed files with 697 additions and 358 deletions

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);
});
}