Clear all pending runIn() events for an app on update()

During app development, I sometimes iterate through multiple versions of my app with small updates. There is the standard update() function which will run during these iterations, and in there you can call functions like unsubscribe().

But is there a way to cancel all past calls to runIn()?

Normally scheduling a new runIn() with the same handler will cancel all pending unless you specifically tell it not to.

2 Likes

ah, good to know. Thanks!!

I see my question for my case is actually wrong. :slight_smile:

In one of my iterations I had used runEvery1Minute() and that was not being removed because I had also removed the call to unschedule() in the update() function thinking I didn't need it anymore. ooops.