How do you handle your intense emotions?

Such as being disrespected and where you can’t say anything so you ended up spending hours just brewing in anger.

I feel I’m wasting so much time

Not speaking about a loved one just in general in life. Currently having issues in class I’ve brought it up with instructor but he won’t stop