blob: f0c456fe8463f494cdcb8b6cd70265ecace335b4 [file] [log] [blame]
// +build ignore,OMIT
package main
import (
"fmt"
"time"
)
// f START OMIT
func f(msg string, delay time.Duration) {
for {
fmt.Println(msg)
time.Sleep(delay)
}
}
// f END OMIT
// main START OMIT
func main() {
go f("A--", 300*time.Millisecond)
go f("-B-", 500*time.Millisecond)
go f("--C", 1100*time.Millisecond)
time.Sleep(20 * time.Second)
}
// main END OMIT