Comment Comment by bkeroack Option 2 is very similar to how signal handlers work in Go. When a signal is received, a value is written to a channel and the library user is responsible for reading values from the channel and responding appropriately.https://golang.org/pkg/os/signal/#example_Notify parent bkeroack 8 years ago
https://golang.org/pkg/os/signal/#example_Notify