In mindfulness meditation the aim is to focus on the breath and when your mind wanders to gently bring it back to the breath over and over to better control your mind and be more present. However, in order to come back to the breath we need something to come back from. The same can be said of all the things in life that we do not like. They are a chance to practice good habits.
Wishing someone would hurry up is a chance to practice patience. Being faced with an angry person is a chance to practice empathy, as to being angry causes the other person to suffer. Feeling angry ourselves is a chance to practice self control. And on it goes.
Everything in life can be seen as a way to become happier and more fulfilled by practicing good habits. We are what we repeatedly do, so practicing the things that will make us the kind of person that we want to be is a good way to live your life. If practiced well then we become the person that we are trying to be.