#Golang’s sleep can use sleep in the time package.
# The prototype of the function is: (Recommended learning: Go )
func Sleep(d Duration)
. The unit of #Duration is nanosecond.
For ease of use, time constants are defined in time:The above is the detailed content of Why does golang sleep have no return value?. For more information, please follow other related articles on the PHP Chinese website!type Duration int64