That sounds like a situation where a timeout timer, probably as part of a lambda function, is a far better solution than having an interval timer that is running all the time.
That’s bad coding. If you did it properly then you wouldn’t need to wait. However, there is no need to use millis comparison in most situations, timeout timers are a much better option in most situations.