reset

.reset()

Resets this Timer back as though it is brand new. It's expiry time will now be extended to right now, at the point in time you called this method, plus the Timer's duration.

This is useful for being able to reuse Timer objects, as it's essentially the same as creating a new Timer with the same duration.

Note that calling reset will cancel all of the expiry callbacks.

See also

invert