I’ve used the code at
for an index rebuild which catches edits during the rebuild.
I’ve tweaked this for my own use and sharing here for others & feedback.
It’s not the prettiest loop and, in theory at least, it could run
forever… but this tweak also allows you to catch edits during the
entire rebuild process.