Consider we have the following situation :
- A labelTextChanged(..) callback, triggered by the change of label contents
- A buttonClicked(..) callback, triggered by the button's click.
The user, changes the contents of the label and, clicks the button directly.
At this point two events are fired :
a) labelTextChanged(...), and after that,
We supose that the contents of the label are incorrect, so, we will show an error message and we want to leave the screen at the current state.
But, when the labelTextChanged(...) function has been finished, the pending event buttonCliked(...), starts to run.
In this case, is there a way to skip/clear/ignore the pending events ?
Thanks in advance