wvanbergen/kafka

How to exit the program in kafka/examples/consumergroup/main.go gracefully?

alexkkk opened this issue · 1 comments

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