0

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

abhipil
  • 164
  • 2
  • 13

0 Answers0