/////////////////////////////////////////////////////////////////////
////unschedule(func)
def unschedule(Closure functionToUnschedule) {
- for (int i = 0;i < timersFuncList.size();i++) {
+ /*for (int i = 0;i < timersFuncList.size();i++) {
if (timersFuncList[i] == functionToUnschedule) {
- timersList[i].cancel()
+ 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()
+ }*/
}