From: Rob Pike Date: Thu, 22 Mar 2012 20:51:16 +0000 (+1100) Subject: doc/articles: rename concurrency patterns article X-Git-Tag: weekly.2012-03-22~5 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a99e9c5db51cdffdad6e561d456b54ffab03cd1f;p=gostls13.git doc/articles: rename concurrency patterns article The old name, automatically generated, was ludicrously verbose. Also clean up an example to use time.Second. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5876051 --- diff --git a/doc/articles/go_concurrency_patterns_timing_out_moving_on.html b/doc/articles/concurrency_patterns.html similarity index 100% rename from doc/articles/go_concurrency_patterns_timing_out_moving_on.html rename to doc/articles/concurrency_patterns.html diff --git a/doc/docs.html b/doc/docs.html index a75ae56cf2..709c081528 100644 --- a/doc/docs.html +++ b/doc/docs.html @@ -105,7 +105,7 @@ Guided tours of Go programs.
  • JSON-RPC: a tale of interfaces
  • Go's Declaration Syntax
  • Defer, Panic, and Recover
  • -
  • Go Concurrency Patterns: Timing out, moving on
  • +
  • Go Concurrency Patterns: Timing out, moving on
  • Go Slices: usage and internals
  • A GIF decoder: an exercise in Go interfaces
  • Error Handling and Go
  • diff --git a/doc/progs/timeout1.go b/doc/progs/timeout1.go index a6c95624c8..5221770ec6 100644 --- a/doc/progs/timeout1.go +++ b/doc/progs/timeout1.go @@ -11,7 +11,7 @@ func Timeout() { ch := make(chan bool, 1) timeout := make(chan bool, 1) go func() { - time.Sleep(1e9) // one second + time.Sleep(1 * time.Second) timeout <- true }()