Sign in
go
/
talks
/
a07c284bcf333dc17a1489fd441e8fccf1e01c2a
/
.
/
content
/
2012
/
concurrency
/
support
/
mainboring.go
blob: 31f1c1e8c1ece75868d99db7ed3085d38cf31bb0 [
file
] [
log
] [
blame
]
// +build ignore,OMIT
package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
boring("boring!")
}
// STOP OMIT
func boring(msg string) {
for i := 0; ; i++ {
fmt.Println(msg, i)
time.Sleep(time.Duration(rand.Intn(1e3)) * time.Millisecond)
}
}