golang/go
Vedi su GitHubx/website/_content/tour: explain the semantics of the main goroutine
Open
#13.750 aperta il 28 dic 2015
DocumentationNeedsInvestigationhelp wanted
Metriche repository
- Star
- (133.883 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
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.