The sleep function is essential in cases where we want to interrupt the execution of the current thread temporarily. This is very useful when we want to block the goroutine for some time.
time.Sleep(time.Duration)