golang/go
View on GitHubx/website/_content/tour: explain the semantics of the main goroutine
Open
#13,750 opened on Dec 28, 2015
DocumentationNeedsInvestigationhelp wanted
Repository metrics
- Stars
- (133,883 stars)
- PR merge metrics
- (No merged PRs in 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.