loading table of contents...

6.44. THREAD_SLEEP()

 
THREAD_SLEEP
La función duerme un hilo según la cantidad de tiempo en milesegundos que le indiquen
Retorna true o false
Parámetros:
Recibe un objeto
Versión: 4.0.2+
 
Ejemplo:
for (int i = 0; i < 5; i++) { system.out.println("Dormir durante 2 segundos."); Thread.Sleep(2000); }