1 /////////////////////////////////////////////////////////////////////
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)