I want to know if there is an easier way to dealy java execution.
function(){
command 1;
thread.sleep();
command 2;
thread.sleep();
... and soo on
}
i want to delay each step in my function is there a better way to do it ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use something like this, but I it is not good idea.
I agree with DaveHowes, that there is no another easy way to do that.