This function is an alternative to loadJSONIndex 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 loadJSONIndex
This function is an alternative to loadJSONIndex 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.