Sleep in Go

Posted by GoDoc
Public (Editable by Users)

Sleep pauses the current goroutine for at least the duration d. A negative or zero duration causes Sleep to return immediately.

Go
Edit
package main

import "time"

func main() {
	time.Sleep(100 * time.Millisecond)
}