Publish ITWorx Pulse source
Public source validation / validate (push) Failing after 3m8s

This commit is contained in:
ITWorx Pulse release export
2026-09-03 02:09:19 +02:00
commit bd774932d5
614 changed files with 77116 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package service
import (
"context"
"os"
)
// WaitForStop blocks until the context is cancelled or a signal is received.
// It accepts a channel so shutdown behavior can be tested without sending a real OS signal.
func WaitForStop(ctx context.Context, signals <-chan os.Signal) {
select {
case <-ctx.Done():
case <-signals:
}
}