V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  Appla  ›  全部回复第 1 页 / 共 1 页
回复总数  1
2018 年 10 月 27 日
回复了 IsaacYoung 创建的主题 Go 编程语言 菜鸟问一个关于 goroutine 和闭包的问题
https://golang.org/ref/spec#Go_statements
```
The function value and parameters are evaluated as usual in the calling goroutine, but unlike with a regular call, program execution does not wait for the invoked function to complete.
```
试试把 time.Sleep(1 * time.Second)加到执行 go 语句的后面看看
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3174 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 12:29 · PVG 20:29 · LAX 05:29 · JFK 08:29
♥ Do have faith in what you're doing.