Purpose of fasting before a planned general anaesthetic is to ensure the patient has an empty stomach to reduce the risk of stomach contents refluxing into the oropharynx and being aspirated into the trachea
Patient breathes 100% oxygen before being put under a general anaesthetic to have a reserve of oxygen for the period between losing consciousness and being successfully intubated and ventilated
Before waking the patient, the muscle relaxant needs to have worn off to avoid "awareness under anaesthesia". A nerve stimulator may be used to test the muscle responses to stimulation, ensuring the effects have ended. This can be tested on the ulnar nerve at the wrist or the facial nerve at the temple.
Malignant hyperthermia is a rare but potentially fatal hypermetabolic response to anaesthesia. It is treated with dantrolene, which interferes with the movement of calcium ions in skeletal muscle.
Risks of general anaesthesia include sore throat, post-operative nausea and vomiting, accidental awareness, aspiration, dental injury, anaphylaxis, cardiovascular events, malignant hyperthermia, and death.