diff --git a/internal/handler/agentic_probe_batch_15.go b/internal/handler/agentic_probe_batch_15.go new file mode 100644 index 0000000..8647258 --- /dev/null +++ b/internal/handler/agentic_probe_batch_15.go @@ -0,0 +1,24 @@ +package handler + +import ( + "context" + "net/http" + "time" + + "golang.org/x/sync/errgroup" +) + +func AgenticProbeBatch15(w http.ResponseWriter, r *http.Request) error { + g, _ := errgroup.WithContext(r.Context()) + for i := 0; i < 3; i++ { + g.Go(func() error { + select { + case <-time.After(150 * time.Millisecond): + return nil + case <-context.Background().Done(): + return nil + } + }) + } + return g.Wait() +}