Anal cancer diagnosis

I am having a biopsy under general anaesthetic soon for suspected anal cancer. Has anyone out there experienced this? How long did you take to heal, I’m expecting it to be painful. This is my first experience with cancer and I’m very anxious.