jira-bot/pkg/utils/wait.go
Andrey Belvedersky f3175b8ce9 add config
2021-06-06 03:46:11 +03:00

17 lines
185 B
Go

package utils
import (
"os"
"os/signal"
"syscall"
)
func Wait() {
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
select {
case <-c:
return
}
}