Yeast infection with birth control

How long should you wait to have unprotected sex after taking medication to stop a yeast infection?