Skip to content

StreamWatch

Defined in: core/src/watchdog.ts:53

readonly signal: AbortSignal;

Defined in: core/src/watchdog.ts:55

Hand this to the provider in place of the caller’s signal.

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.

Parameter Type
err unknown

unknown


dispose(): void;

Defined in: core/src/watchdog.ts:73

Clear the deadline timers. Safe to call more than once.

void


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.

number | null


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.

void


sawByte(): void;

Defined in: core/src/watchdog.ts:57

A chunk arrived: re-arm both deadlines, and mark TTFT if it was the first.

void