if ((timeout instanceof TimeoutExecutionUnit))
webWrapper.removeTask((DelayedExecutionUnit) timeout);
}
public TimeoutExecutionUnit setTimeout(Object obj, int milliseconds) {
TimeoutExecutionUnit task = null;
if ((obj instanceof Function)) {
task = new TimeoutExecutionUnit((Function) obj, milliseconds);
webWrapper.addTask(task);
} else if ((obj instanceof String)) {
task = new TimeoutExecutionUnit((String) obj, milliseconds);
webWrapper.addTask(task);
}
return task;
}