The first thing to think about is that the Gemara in Eruvin writes, “Amar Rabbi Chiyya bar Ashi amar Rav (Rabbi Chiyya bar Ashi said in the name of Rav).” “Kol she'ein da'ato yoshevet alav”—anyone whose mind is not settled. You're in a difficult state in your mind, or maybe you're in a difficult spot. “Al yitpalel,” the Gemara says. A person should not pray at that moment, because you have Pesachim that tell us, “Don't pray when you can't have kavanah (intention).”
Therefore, according to the Gemara, if a person knows he's very flustered, he's very stressed out, and he's not in the right place to pray in his mind, he shouldn't pray there. The Gemara in Eruvin says this. Nowadays, we don't keep to that so much, because we don't have so much kavanah, sadly, in the first place. So we can't dictate Halachot (Jewish laws) based on how settled our mind is. So what is the practical application of these halachot? When does it come up? I'll give you my personal example that I believe is important to keep in mind.
Let's say you're at an outing. I don't know if it's a game or if you're at the park, whatever it is, and it's two o'clock, and someone says, “Let's make a minyan (prayer quorum) right now.” It's two o'clock. “Let's make a minyan right now for Mincha (afternoon prayer).” They love to do that. When you do that minyan in the park, when you can hardly hear the other guy, just to get the minyan over with, that type of example is not proper.
You always go to shul, typically. You go to shul at the regular time when you get home, as you always do. If you're going to miss minyan, it's a different story. But if you normally go home and go to shul on time, go home and go to shul. It's not a mitzvah (commandment) to get the earliest minyan possible just because you're in a park with ten other Jews. It's not really the proper thing to do. Who knows if it's even proper to pray altogether in such a place, where so many other things are going on? You can't hear each other. You may not even be considered a minyan when you can't connect.
So therefore, that's an example where you're in a situation, and G-d told you, “You're not settled”; you instead wait and pray with a minyan at the right time, at the right place. But typically, this halacha is not so common, because, in general, we say that this is not always possible. That's halacha.