sex after yeast infection

how long after yeast infection until can you have sex? and if you use treatment how long after?