Answers for "java wait(timeout)"

0

java wait(timeout)

import java.util.concurrent.TimeUnit;

...

try {
	TimeUnit.SECONDS.sleep(1);
} catch (Exception e) {}

// .MILLISECONDS.sleep, .MINUTES.sleep, etc. are also available
Posted by: Guest on April-19-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language