Stop
Last updated
Was this helpful?
Last updated
Was this helpful?
stop
(triggerFinishCallback?: boolean) => void
Stops timer (not pause) after it was started using either option or method.
This will reset current , 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 , unless called with triggerFinishCallback
equal to false
like stop(false).