Change-Id: Id0a127e080dda8ee62738922c6de8caf3719dd68
Reviewed-on: https://go-review.googlesource.com/c/go/+/295949
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Trust: Kevin Burke <kev@inburke.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
package context_test
import (
- "context"
. "context"
"fmt"
"runtime"
}
func BenchmarkContextCancelDone(b *testing.B) {
- ctx, cancel := context.WithCancel(context.Background())
+ ctx, cancel := WithCancel(Background())
defer cancel()
b.RunParallel(func(pb *testing.PB) {