Go - time.Sleep()

ZhangZhihui's Blog / 2023-08-03 / 原文

Important note

The time.Sleep() function blocks the current Goroutine and will not allow any other Goroutines to run while it’s sleeping. This can induce a performance issue if the Goroutine is sleeping for a long time.