golang/go

x/website/_content/tour: explain the semantics of the main goroutine

Open

#13,750 opened on Dec 28, 2015

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Go (19,008 forks)batch import
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.

Contributor guide