This is a callback function you can provide to iterate over all the stashed states that will be invoked per entry.
The position within the stash list. 0 points to the most recent stashed state.
The stash message.
Extra parameter to callback function.
0 to continue iterating or non-zero to stop