context: WithCancel example is not explaining cancel func #17534
Labels
Documentation
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
As a user, I'd expect WithCancel example at https://tip.golang.org/pkg/context/#example_WithCancel to explain specific cancellation of the context by calling the cancel func. The example doesn't even require a cancellable context, see https://play.golang.org/p/4hMwLTCVaU.
Is this example trying to achieve something similar to what's below?
/cc @bradfitz
The text was updated successfully, but these errors were encountered: