You'd probably use some kind of capacitor