并发共1篇
11.使用Goroutine-四曲博客

11.使用Goroutine

阻塞和非阻塞代码 模拟阻塞的函数调用 package main import ( "fmt" "time" ) func slowFunc(){ fmt.Println("begin") time.Sleep(time.Second * 2) fmt.Println...