Platitudes like "it gets better with time" are both true, but also not very helpful in the moment. The truth is, like any injury, this kind of pain does take time to heal, and it sucks in the meantime. I'm sorry. Till then, you have to keep yourself and your life moving on, even if you don't feel like it. Don't let yourself get stuck where you are. You need to give yourself the opportunity to reorient yourself and your life to this change.
For me, the deepest heartbreak I experienced was not a breakup, but the death of a very dear friend. I watched a *lot *of Doctor Who (David Tennant, the first? time). I stopped watching Doctor Who years ago, but I'll always appreciate the show and David Tennant for bringing me tiny bits of fun in those sad days. It's been more than a decade; I still miss that friend and feel sad when I think about him. But it's not a sharp, immediate pain, it's more like wistfulness. And I can think about and appreciate the good times we enjoyed together.
As for an actual breakup after a not-great relationship (which yours sounds like, from your description in another thread), what I can say is that it is way better to be single than to be with someone who doesn't love you. Nor does it seem he even liked you even as a friend. Would you ever treat a friend, even an acquaintance, the way he treated you? Honestly, it sounds like he finally did the right thing by ending it rather than continuing to drag it out. I hope you will understand this with clarity later. Don't settle for that kind of nonsense in the future. Look for someone who is of good character all the time because that's just who they are, not someone who turns it on and off as he pleases.