How soon after a breakup is it okay to hookup with someone else?

Broke up yesterday. We were dating for over 2 years but haven't been "active" in 3 months and haven't finished in a year. I don't want to be a complete asshole though
How soon after a breakup is it okay to hookup with someone else?
Post Opinion