StreamWatch
Defined in: core/src/watchdog.ts:53
Properties
Section titled “Properties”signal
Section titled “signal”readonly signal: AbortSignal;Defined in: core/src/watchdog.ts:55
Hand this to the provider in place of the caller’s signal.
Methods
Section titled “Methods”classify()
Section titled “classify()”classify(err): unknown;Defined in: core/src/watchdog.ts:71
Re-issue a provider failure as the timeout only when it was one of our deadlines that aborted. A caller’s Stop passes through untouched.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
err |
unknown |
Returns
Section titled “Returns”unknown
dispose()
Section titled “dispose()”dispose(): void;Defined in: core/src/watchdog.ts:73
Clear the deadline timers. Safe to call more than once.
Returns
Section titled “Returns”void
firstChunkMs()
Section titled “firstChunkMs()”firstChunkMs(): number | null;Defined in: core/src/watchdog.ts:66
Milliseconds from the call opening to its first chunk of any kind. The wait a person actually experiences, and the number a prompt-cache pin exists to shrink. Null until something arrives.
Returns
Section titled “Returns”number | null
sawActivity()
Section titled “sawActivity()”sawActivity(): void;Defined in: core/src/watchdog.ts:60
The response showed life without a chunk: its headers, a keep-alive, a partial frame. Starts or re-arms the idle deadline only.
Returns
Section titled “Returns”void
sawByte()
Section titled “sawByte()”sawByte(): void;Defined in: core/src/watchdog.ts:57
A chunk arrived: re-arm both deadlines, and mark TTFT if it was the first.
Returns
Section titled “Returns”void