time: time.wait() => time.sleep()

This commit is contained in:
Alexander Medvednikov 2021-02-27 20:41:06 +03:00
parent be4a2e17d3
commit 3a2d696fac
42 changed files with 76 additions and 67 deletions

View file

@ -3,7 +3,7 @@ import time
// Simulate expensive computing using sleep function
fn expensive_computing(id int, duration int) {
println('Executing expensive computing task ($id)...')
time.wait(duration * time.millisecond)
time.sleep(duration * time.millisecond)
println('Finish task $id on $duration ms')
}