I have, actually, set demand pacing for 40 PPM with a patient who was in AF with slow ventricular response and an occasionally somewhat scary asystolic pause.
Here's a tip when you do that: turn the pacer off before the nurses disconnect your 3-lead in the emergency department...