How do refrain from thinking about having a boyfriend ?

Need to lock in but I keep feeling this desperation to have a guy in my life , how I stop thinking about this completely?