MCPcopy Create free account
hub / github.com/devfullcycle/goexpert / task

Function task

10-Multithreading/1-Go-Routines/main.go:8–13  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

6)
7
8func task(name string) {
9 for i := 0; i < 10; i++ {
10 fmt.Printf("%d: Task %s is running\n", i, name)
11 time.Sleep(1 * time.Second)
12 }
13}
14
15// Thread 1
16func main() {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected