Stop

Name

stop

Type

(triggerFinishCallback?: boolean) => void

Description

Stops timer (not pause) after it was started using either autoStart option or start method.

This will reset current interval, so if for example interval was set to 1000ms and stop method was called after 400ms, starting it again will trigger next callback after 1000ms, not 600ms.

By default calling stop will trigger finish callback, unless called with triggerFinishCallback equal to false like stop(false).

Last updated