Add callback argument to track completion of dump

Really minor style nit: the convention from the Google style guide is to indent continuation lines by four spaces.  I think you're indenting by 8 here.  Then the call to New() probably fits on one line as well.