MCPcopy Create free account
hub / github.com/buildkite/agent-stack-k8s / newNotificationBatcher

Function newNotificationBatcher

api/stack_notification_batcher.go:39–47  ·  view source on GitHub ↗
(stackKey string, client *stacksapi.Client, logger *slog.Logger)

Source from the content-addressed store, hash-verified

37}
38
39func newNotificationBatcher(stackKey string, client *stacksapi.Client, logger *slog.Logger) *notificationBatcher {
40 nb := &notificationBatcher{
41 notifications: make(chan stacksapi.StackNotification, maxBufferSize),
42 stackKey: stackKey,
43 client: client,
44 logger: logger,
45 }
46 return nb
47}
48
49func (nb *notificationBatcher) add(ctx context.Context, notification stacksapi.StackNotification) error {
50 select {

Calls

no outgoing calls