Sign in
go
/
talks
/
7039a792dd811b75bd4186daa9ce014c76c948d4
/
.
/
2012
/
concurrency
/
support
/
mainboring.go
blob: a11ce86ef3968453e0437387e9ac5abf0442a5b4 [
file
] [
log
] [
blame
]
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)
}
}