We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86a32d6 commit af5943fCopy full SHA for af5943f
src/context/context.go
@@ -231,7 +231,7 @@ type CancelFunc func()
231
// or when the parent context's Done channel is closed, whichever happens first.
232
//
233
// Canceling this context releases resources associated with it, so code should
234
-// call cancel as soon as the operations running in this Context complete.
+// call cancel as soon as the operations running in this [Context] complete.
235
func WithCancel(parent Context) (ctx Context, cancel CancelFunc) {
236
c := withCancel(parent)
237
return c, func() { c.cancel(true, Canceled, nil) }
0 commit comments