settimeout - Simple Countdown Timer Typescript - Stack Overflow
@colin what do you mean by "destruction of the instance". JS does not have deterministic destruction. The instance will be garbage collected when nobody has a reference to it anymore. As long as there is a timeout scheduled, the instance cant be GCed, so it will stay alive as long as the count down is happening. –
more
|