Question : sleep in scala
Answered by : santhosh-kumar-dhanasekaran
val a = 1
Thread.sleep(1000) // wait for 1000 millisecond
val b = 2
Source : https://stackoverflow.com/questions/35518759/how-to-wait-for-n-seconds-between-statements-in-scala | Last Update : Sat, 27 Aug 22