摘要:
func main() { count := 0 wg := sync.WaitGroup{} wg.Add(10) for i := 0; i < 10; i++ { go func() { defer wg.Done() for j := 0; j < 100000; j++ { count++ 阅读全文
posted @ 2021-03-30 09:49
hubb
阅读(178)
评论(0)
推荐(0)
摘要:
package main import ( "fmt" "time" ) func main(){ Go(func(){ fmt.Println("hello") panic("一路向北") }) time.Sleep(5 * time.Second) } func Go(x func()){ go 阅读全文
posted @ 2021-03-30 09:47
hubb
阅读(189)
评论(0)
推荐(0)

浙公网安备 33010602011771号