IdleMarkProxy
Defined in: packages/app-report/src/proxy/idle-mark-proxy.ts:23
Writes a synthetic “mark” event to the wrapped sink after a period with no writes at all — a liveness heartbeat for an otherwise-silent long-running process (a daemon, a log file nobody’s tailed in hours).
Type Parameters
Section titled “Type Parameters”TData
Implements
Section titled “Implements”ISink<TData>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new IdleMarkProxy<
TData>(sink,options?):IdleMarkProxy<TData>
Defined in: packages/app-report/src/proxy/idle-mark-proxy.ts:29
Parameters
Section titled “Parameters”ISink<TData>
options?
Section titled “options?”IdleMarkProxyOptions<TData>
Returns
Section titled “Returns”IdleMarkProxy<TData>
Methods
Section titled “Methods”close()
Section titled “close()”close(
signal?):Promise<void>
Defined in: packages/app-report/src/proxy/idle-mark-proxy.ts:55
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/idle-mark-proxy.ts:42
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/idle-mark-proxy.ts:51
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/idle-mark-proxy.ts:46
Parameters
Section titled “Parameters”ReportEvent<TData>
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<void>