kafka
kafka copied to clipboard
How to exit the program in kafka/examples/consumergroup/main.go gracefully?
when I test the program , I just use Ctrl + C to killed it. Is there a graceful way? Or, What is the best practice to exit the program ?
1 Ctrl+C 2 kill $pid