In the Heat of the Moment - Verbal Resignations

We've all been there, the supervisor or boss has touched our last nerve, pushed a little too much and we snap, mostly in our head visualising walking out or resigning .. but what happens if you verbalise, resign in the heat of the moment, because for whatever reason it all got too much in that particular moment.