Commit #4
[smartthings-infrastructure.git] / Methods / runIn.groovy
1 /////////////////////////////////////////////////////////////////////
2 ////runIn(time, func)
3 def runIn(int seconds, Closure functionToCall) {
4         timersFuncList.add(functionToCall)
5         timersList.add(new Timer())
6         def task = timersList[-1].runAfter(1000*seconds, functionToCall)
7 }