golang/go
Ver no GitHubx/website/_content/tour: explain the semantics of the main goroutine
Open
#13.750 aberto em 28 de dez. de 2015
DocumentationNeedsInvestigationhelp wanted
Métricas do repositório
- Stars
- (133.883 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Context: http://127.0.0.1:3999/concurrency/1
In concurrency/1 (Goroutines), commenting out line 17 say("hello") also stops the go say("world") from doing anything. The program exits before any worlds are said, yet without commenting out line 17 it seems to wait for all goroutines to finish before exiting.