Commit #4
[smartthings-infrastructure.git] / Methods / unschedule.groovy
1 /////////////////////////////////////////////////////////////////////
2 ////unschedule(func)
3 def unschedule(Closure functionToUnschedule) {
4         for (int i = 0;i < timersFuncList.size();i++) {
5                 if (timersFuncList[i] == functionToUnschedule) {
6                         timersList[i].cancel()
7                 }
8         }
9 }