RosettaCodeData/Task/Sleep/Groovy/sleep-2.groovy
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07: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)