instead of a boolean flag, wouldn't it make more sense to do something like increment a int every time you stream in a new document, then inside the callback check if `numStreamed === numDeleted`?