MCPcopy Create free account
hub / github.com/Go-Learning-Land/Go-Learning-Archive / worker

Function worker

GolangBasics/GoByExample/026ChannelSync.go:8–14  ·  view source on GitHub ↗
(done chan bool)

Source from the content-addressed store, hash-verified

6)
7
8func worker(done chan bool) {
9 fmt.Print("working...")
10 time.Sleep(time.Second)
11 fmt.Println("done")
12
13 done <- true
14}
15
16func main() {
17

Callers 1

mainFunction · 0.70

Calls 2

PrintlnMethod · 0.80
PrintMethod · 0.65

Tested by

no test coverage detected