Looped concurrent rebuild

I’ve used the code at
http://pastie.textmate.org/66602
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.

http://pastie.textmate.org/188436

Sam