Inspired from reading
https://github.com/golang/go/issues/32437#issuecomment-50187
After some careful thoughts on various different concerns and criticisms of
the existing proposal, I'd want to give a try from a different approach.
Using the famous example of CopyFile:
func CopyFile(src
This program will make panic not panicking but silently blocking forever.
func panicfunc() {
panic("oops")
}
func run() {
defer func() {
select {}
}
panicfunc()
}
func main() {
// not trigger runtime deadlock.
go func() {
ticker := time.NewTicker(1