Comment Comment by mperham Go provides a context package which allows in-flight cancellation of heavy operations spanning processes and even machines. https://pkg.go.dev/context parent mperham 4 years ago