RosettaCodeData/Task/Sleep/Groovy/sleep-2.groovy
2023-07-01 13:44:08 -04:00

12 lines
190 B
Groovy

sleepTest(1000)
print '''
Hmmm. That was... less than satisfying.
How about this instead?
'''
Thread.start {
(0..5).each {
println it
sleep(1000)
}
}
sleepTest(5000)