And sometimes it doesn't work. Patients are then given the option of going ahead without sedation, or rescheduling for general anaesthesia.
Surgery uses propofol plus a gas anesthesia for "general anesthesia", but it is considered "general anesthesia" even if only propofol is used.