🔨 Rename WaitForFinish method to WaitForTermination

This commit is contained in:
M. Mert Yildiran
2022-12-27 09:28:23 +03:00
parent 11a2f93e34
commit 33f23ea849
6 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ import (
"github.com/rs/zerolog/log"
)
func WaitForFinish(ctx context.Context, cancel context.CancelFunc) {
func WaitForTermination(ctx context.Context, cancel context.CancelFunc) {
log.Debug().Msg("Waiting to finish...")
sigChan := make(chan os.Signal, 1)
signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT)