Sign in
go
/
website
/
7c52741a0fc8c8581a3b4da54b20052a4eb3cd7d
/
.
/
_content
/
talks
/
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)
}
}