We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4e88697 + bc9e56a commit 63918f6Copy full SHA for 63918f6
rpc/rpc.go
@@ -72,8 +72,11 @@ type Conn struct {
72
er errReporter
73
abortTimeout time.Duration
74
75
- // bgctx is a Context that is canceled when shutdown starts.
+ // bgctx is a Context that is canceled when shutdown starts. Note
76
+ // that it's parent is context.Background(), so we can rely on this
77
+ // being the *only* time it will be canceled.
78
bgctx context.Context
79
+
80
// tasks block shutdown.
81
tasks sync.WaitGroup
82
closed chan struct{} // closed when shutdown() returns
0 commit comments