Question
Java HELP!
I found this code to pause the execution of a page by a set
amount of
seconds
I need to figure out how to use this in CF so I can pause the execution of a
loop.
Can anyone help?
public class Wait {
public static void oneSec() {
try {
Thread.currentThread().sleep(1000);
}
catch (InterruptedException e) {
e.printStackTrace();
}
}
}
Can I put it into a <cfscript> tag? Then how can I call it inside a loop?
seconds
I need to figure out how to use this in CF so I can pause the execution of a
loop.
Can anyone help?
public class Wait {
public static void oneSec() {
try {
Thread.currentThread().sleep(1000);
}
catch (InterruptedException e) {
e.printStackTrace();
}
}
}
Can I put it into a <cfscript> tag? Then how can I call it inside a loop?
