During your surgery, anesthesia ensures you are comfortable and without pain. For most procedures you will be asleep for the entire time. After surgery, you will be prescribed medication for any discomfort. These symptoms usually subside within a matter of days.