/////////////////////////////////////////////////////////////////////
////unschedule(func)
-def unschedule(Closure Input) {
- for (int i = 0;i < ListofTimersFunc.size();i++) {
- if (ListofTimersFunc[i] == Input) {
- ListofTimers[i].cancel()
+def unschedule(Closure functionToUnschedule) {
+ /*for (int i = 0;i < timersFuncList.size();i++) {
+ if (timersFuncList[i] == functionToUnschedule) {
+ if (timersList != null)
+ timersList[i].cancel()
}
- }
+ }*/
+}
+
+def unschedule(String nameOfFunctionToUnschedule) {
+ /*for (int i = 0;i < timersFuncList.size();i++) {
+ if (timersFuncList[i] instanceof String) {
+ if (timersFuncList[i] == nameOfFunctionToUnschedule) {
+ if (timersList != null)
+ timersList[i].cancel()
+ }
+ }
+ }*/
+}
+
+
+def unschedule() {
+ /*for (int i = 0;i < timersFuncList.size();i++) {
+ if (timersList != null)
+ timersList[i].cancel()
+ }*/
}