"First commit!"
[smartthings-infrastructure.git] / Methods / runIn.groovy
1 /////////////////////////////////////////////////////////////////////
2 ////runIn(time, func)
3 def runIn(int seconds, Closure Input) {
4         ListofTimersFunc.add(Input)
5         ListofTimers.add(new Timer())
6         def task = ListofTimers[-1].runAfter(1000*seconds, Input)
7 }