First time yeast infection?!

I
So I went to the doctor and he's pretty sure I have a yeast infection but until my test results come back he suggested I use the monistat. I'm a little confused how it works though, I already inserted the egg does it dissolve? How long does it take to dissolve? When is it okay to have sex again? What are your experiences with monistat?