\r
//By Apps\r
def runAfter(int delay, Closure closure) {\r
- thread = new Thread() {\r
+ /*thread = new Thread() {\r
\r
@Override\r
public void run() {\r
closure()\r
}\r
}.start()\r
- return thread\r
+ return thread*/\r
+ closure()\r
}\r
\r
def cancel() {\r
- if (thread != null)\r
- thread.stop()\r
+ //if (thread != null)\r
+ // thread.stop()\r
}\r
}\r