Sign in
go
/
talks
/
c9f0190a9d8676e253fa0e642ae0dfb74e9ffc2e
/
.
/
2012
/
concurrency
/
support
/
mainboring.go
blob: af90c8e597998c2d37bcec8ae6aa71cef54c8fe2 [
file
] [
log
] [
blame
]
// +build 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)
}
}