feat(locate-db): add delay in progress reporting during database build
This commit is contained in:
parent
4b901c96b5
commit
f66f5f6d77
|
|
@ -214,6 +214,7 @@ export async function buildLocateDb(
|
|||
if (i % SCAN_PROGRESS_INTERVAL === 0) {
|
||||
signal?.throwIfAborted();
|
||||
onProgress?.('building', i, e.path);
|
||||
await new Promise<void>(resolve => setTimeout(resolve, 0));
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user