I'm 14 years on from this happening to me. It took around 3 months to stop crying and wallowing in what I thought I'd lost and the rejection. But in that three months I filed for divorce (he was asking why the rush ffs- he had another woman, and she was pregnant.) I was divorced by the six month mark.
What I learned about recovery: Be angry, but do it in private and don't act on it. (People- friends, family, don't like anger being expressed and want you to be over it in days). Do what you need to do to feel better as long as it's legal. Burn the bedding, buy new, change the house, make it yours not "ours", make a playlist of music that lifts you up (mine included Lively Up Yourself, I had to dance when I heard it, dancing feels good), do some exercise, it was swimming for me. Own your life without him.
It takes as long as it takes to get better, don't be surprised if family and friends expect it to be ok faster (much faster) than you.
Get a haircut, buy some new clothes- wash that man right out of your hair.
See your friends (not ones who are friends of his). Go no, or low contact and be grey rock when you see him. Cool, polite but no emotion. Keep a list of all the tosser, twatty things he did that used to embarrass or annoy you and revisit it when you find yourself drifting into thinking about what you've lost.
Keep your chin up, take some time off work to recover if you can. You will emerge as a stronger woman.
Sending love. Hugs (v unmumsnetty) and strength. You can do this! X