I want to delay the execution of a scala script. The purpose it to provide some user readability. Wait for like 1 second or so, between printing new lines.
A naive(blocking) way to do so is
for(a<-1 to 100000){
//do nothing
}
Any cleaner ways to so using Scala API