This function is an alternative to loadIndex that returns
a promise, and loads the index in batches, leaving pauses between them to avoid
blocking the main thread. It tends to be slower than the synchronous
version, but does not block the main thread, so it can be a better choice
when deserializing very large indexes.
Async equivalent of loadIndex
This function is an alternative to loadIndex that returns a promise, and loads the index in batches, leaving pauses between them to avoid blocking the main thread. It tends to be slower than the synchronous version, but does not block the main thread, so it can be a better choice when deserializing very large indexes.