Anesthesiologist here…
Pretty much what brossa and **steatopygia **said, with some comments.
Re the OP, the risk is not exactly “choking on your vomit”, which to me implies a blockage of the trachea, but rather aspiration of gastric contents, which results in chemical damage to the lungs which may required prolonged intubation and ventilation, or can be permanent or even fatal.
Also, the surgeon has nothing to do with handling any vomiting that may happen" That’s our job.
I recently heard my job described as “keeping patients alive while surgeons do things that may otherwise kill them”.
Really Not All That Bright - to agree with the other posters here, gastric lavage and emetics are not used.
An NG tube is often placed and suctioned in cases where the patient has an extremely high risk of aspiration, beyond the standard risks of having a full stomach, specifically, if the surgery is to repair a bowel obstruction. There is some controversy about whether the NG tube should be left in place after suctioning or whether it sort of stents open the esophagus and should be removed before inducing anesthesia. The evidence probably supports leaving the NG tube on suction and applying cricoid pressure during induction. As brossa mentioned, cricoid pressure is supposed to compress the esophagus and prevent regurgitation of stomach contents. Whether or not it accomplishes this is unclear. Some studies seem to show that it merely displaces the esophagus to one side. This probably varies with the amount of pressure applied, which in turn varies with the skill and experience of the person applying the pressure.
Other precautions to reduce aspiration risk include preoperative oral administration of a non-particulate antacid such as sodium citrate which makes the consequences of aspiration less severe, an H2 receptor blocker such as pepcid for the same purpose, and administration of promotility drugs such as metoclopramide which should help empty the stomach. Of course, this all depends on how emergent the surgery/need for intubation is.
Last, an explanation about RSI/rapid sequence induction. A standard induction involves giving the patient pure oxygen to greatly increase the amount of time they can go without breathing (apneic time), then giving one or a combination of several hypnotic drugs such as propofol, etomidate, fentantyl, etc, then confirming your ability to mask ventilate the patient, giving a paralytic agent, continuing to ventilate the patient with oxygen and possibly anesthetic gas while the paralytic agent takes effect, and then intubating the patient. Since the patient’s protective airway reflexes are greatly diminished once the initial hypnotic drugs are given, they are at risk for aspiration of regurgitated stomach contents during this time, especially with mask ventilation which may insufflate air into the stomach and increase the likelihood of regurgitation. Therefore, RSI involves preoxygenating the patient, giving the hypnotic and rapid acting paralytic drugs together, and then letting the patient remain apneic until the paralytic has taken effect, at which point they can be intubated.