Cancel previous timeouts in `setTimer()`