Classes · @purista/core

InFlightExecutionTracker

Tracks active event bridge handler promises for drain and health reporting.

Signature

InFlightExecutionTracker.tstypescript
class InFlightExecutionTracker

Constructors

1 entry

constructor

Constructor

constructor.tstypescript
new constructor()

Accessors

1 entry

size

Member

Source
size.tstypescript
size

Methods

3 entries

getCounts

Method

Source
getCounts.tstypescript
getCounts(): EventBridgeInFlightExecutionCounts

Return active execution counts grouped by kind.

run

Method

Source
run.tstypescript
run<T>(fn: () => Promise<T>, kind: InFlightExecutionKind): Promise<T>

Run and track one asynchronous execution.

waitForIdle

Method

Source
waitForIdle.tstypescript
waitForIdle(timeoutMs: number): Promise<boolean>

Wait until all tracked work settles or the timeout elapses.