up
Some checks failed
Go CI / test (push) Has been cancelled

This commit is contained in:
Dev
2025-09-13 12:30:01 +03:00
commit 4d51c65060
14 changed files with 1227 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package clouddetect
import (
"context"
"time"
)
// GracefulShutdown handles context cancellation and cleanup for detection operations.
func GracefulShutdown(ctx context.Context) {
// Placeholder for future shutdown logic.
// Currently, simply wait for context cancellation or a timeout.
select {
case <-ctx.Done():
// Context cancelled.
case <-time.After(5 * time.Second):
// Timeout reached.
}
}