So lost

So after all this back and forth between this guy I'm totally in love with, I finally came to the conclusion he has no feelings for me and just uses me for sex. How do you get over someone you see the rest of your life with when they never even liked you?