Called once after the loop terminates, on success or exhaustion.
void onDone(int passes, int tokens);