How do you cancel a runIn in an app

I should know this, but can't remember. I have a runIn command in a custom app. There is a condition where I want to cancel the runIn before it times out. How do I do that?

Use unschedule():

2 Likes

Better yet, use unschedule(handlerMethod) to target specific method if you have multiple timers running and you don't want to kill them all.

2 Likes

I think I'm getting too old for this. Brain just doesn't work as good as it did :). About 10 minutes after posting my question, I remembered. Thanks for the reponses tho.

3 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.