Sleep In Scala

[Solved] Sleep In Scala | Scala - Code Explorer | yomemimo.com
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

Answers related to sleep in scala

Code Explorer Popular Question For Scala