Go's deadlock detector gives up if any timer is pending. Add time.AfterFunc(time.Hour, ...) to a program that blocks on a channel send and it hangs instead of printing "all goroutines are asleep". https://importstatic.com/go/go-all-goroutines-asleep-deadlock
importstatic.com"all goroutines are asleep - deadlock!" in Go: six causes and their fixesWhat Go's "all goroutines are asleep - deadlock!" error means, six programs that trigger it with their output and fixes, and why a server hangs instead.
0 reposts0 likes