Loops over all the stashed states and issue a callback for each one.
If callback returns a non-zero value, this will stop looping.
| this |
a Repository. |
| callback | |
| user_data |
callback user data. |
|
true if there was no error, false otherwise. |