MCPcopy
hub / github.com/inngest/inngest / Add

Method Add

pkg/execution/concurrency/concurrency.go:26–26  ·  view source on GitHub ↗

Add inserts a new item into the concurrency service. This will count towards concurrency limits until the specified timeout or until the key is removed via a call to Done(). Add must return an ErrAtConcurrencyLimit if there is no capacity for the given function ID/key.

(ctx context.Context, functionID uuid.UUID, qi queue.Item)

Source from the content-addressed store, hash-verified

24 // Add must return an ErrAtConcurrencyLimit if there is no capacity for the given
25 // function ID/key.
26 Add(ctx context.Context, functionID uuid.UUID, qi queue.Item) error
27
28 // Done removes the given key from concurrency limits for a function.
29 //

Callers 15

waitForPostgresFunction · 0.65
TestLogRecordRoundTripFunction · 0.65
ExportMethod · 0.65
RecordCounterMetricFunction · 0.65
getCounterMethod · 0.65
getUpDownCounterMethod · 0.65
setAsyncGaugeMethod · 0.65
getGaugeMethod · 0.65
getHistogramMethod · 0.65
flushMethod · 0.65
ExportSpansMethod · 0.65

Calls

no outgoing calls