Check context.CancelFunc usage

Ensure that the cancel function is always called

How to use:

In code that uses a context.WithCancel call, check for any warning messages. If one shows up, you can use the Show Context Action menu, ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), and use either the Navigate to 'cancel' function or Navigate to the end of the problematic execution path options from it. By using these feature, you can then gain the insight into what the IDE sees as a problematic execution path, and place the correct call to the cancel function.


Related Resources

Full Line Code Completion in GoLand
Full Line Code Completion in GoLand
Faster code completion with the help of a locally running deep learning model.
Goroutines Profiler Labels
Goroutines Profiler Labels
Advance beyond the current line of code and move on to the next line.
Run to cursor
Run to cursor
Continues the execution until the position of the caret is reached.