kamilsk / retry

♻️ The most advanced interruptible mechanism to perform actions repetitively until successful.
https://pkg.go.dev/github.com/kamilsk/retry/v5
MIT License
340 stars 14 forks source link

handle os.Interrupt signal #77

Closed kamilsk closed 7 years ago

kamilsk commented 7 years ago
c := make(chan os.Signal)
signal.Notify(c, os.Interrupt)
kamilsk commented 7 years ago

provide a useful abstraction for that. use sync.Once to initialize it

kamilsk commented 7 years ago

done by e7612610f27c0babd097e568a9673bf11ce29c82