NoRepeatProxy
Defined in: packages/app-report/src/proxy/no-repeat-proxy.ts:37
Suppresses consecutive data events equal to the last one written, replacing
a run of repeats with one summary event instead — everything else
(scope-start, output, attachment, …) always passes through.
A pending summary is force-flushed as soon as maxCount/maxDelayMs is
reached, whichever comes first — the latter checked both against each new
incoming repeat and, in case the repeats simply stop arriving, by a
background timer.
Type Parameters
Section titled “Type Parameters”TData
Implements
Section titled “Implements”ISink<TData>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NoRepeatProxy<
TData>(sink,options?):NoRepeatProxy<TData>
Defined in: packages/app-report/src/proxy/no-repeat-proxy.ts:49
Parameters
Section titled “Parameters”ISink<TData>
options?
Section titled “options?”NoRepeatProxyOptions<TData>
Returns
Section titled “Returns”NoRepeatProxy<TData>
Methods
Section titled “Methods”close()
Section titled “close()”close(
signal?):Promise<void>
Defined in: packages/app-report/src/proxy/no-repeat-proxy.ts:103
Parameters
Section titled “Parameters”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”enabled()
Section titled “enabled()”enabled(
probe):boolean
Defined in: packages/app-report/src/proxy/no-repeat-proxy.ts:70
Fast path: veto before the emitter allocates the event. Default: always enabled.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”boolean
Implementation of
Section titled “Implementation of”flush()
Section titled “flush()”flush(
signal?):void|Promise<void>
Defined in: packages/app-report/src/proxy/no-repeat-proxy.ts:99
Parameters
Section titled “Parameters”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”void | Promise<void>
Implementation of
Section titled “Implementation of”write()
Section titled “write()”write(
event,signal?):Promise<void>
Defined in: packages/app-report/src/proxy/no-repeat-proxy.ts:74
Parameters
Section titled “Parameters”ReportEvent<TData>
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<void>