mirror of https://github.com/golang/go.git
If the timeout triggers before writing to the done channel, the
goroutine will be blocked waiting for a corresponding read that’s
no longer existent, thus a goroutine leak. This change fixes that by
using a buffered channel instead.
Change-Id: I9cf4067a58bc5a729ab31e4426edd78bd359e8e0
GitHub-Last-Rev:
|
||
|---|---|---|
| .. | ||
| atomic | ||
| cond.go | ||
| cond_test.go | ||
| example_pool_test.go | ||
| example_test.go | ||
| export_test.go | ||
| map.go | ||
| map_bench_test.go | ||
| map_reference_test.go | ||
| map_test.go | ||
| mutex.go | ||
| mutex_test.go | ||
| once.go | ||
| once_test.go | ||
| pool.go | ||
| pool_test.go | ||
| poolqueue.go | ||
| runtime.go | ||
| runtime2.go | ||
| runtime2_lockrank.go | ||
| runtime_sema_test.go | ||
| rwmutex.go | ||
| rwmutex_test.go | ||
| waitgroup.go | ||
| waitgroup_test.go | ||