Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 256 Bytes
package main
import (
"fmt"
"time"
)
func main() {
go func() {
for {
fmt.Println("Hello from the 1st loop")
time.Sleep(100 * time.Millisecond)
}
}()
for {
fmt.Println("Hello from the 2nd loop")
time.Sleep(100 * time.Millisecond)
}
}
You can’t perform that action at this time.