Swift Thread.Sleep

while (true){
    print("sleep for 2 seconds.")
    sleep(2) // working
}
Yellowed Yacare