Cardiac arrhythmias can be terminated by electrical current applied by an external defibrillator. This treatment, named cardioversion, has been used for decades in the treatment of atrial fibrillation.