feat: Automatically recover from frozen live streams (#2569)

- Closes: #2099
This commit is contained in:
Dermot Duffy
2026-07-07 21:37:24 -07:00
committed by GitHub
parent 9f956fe89f
commit fb1bbc739e
73 changed files with 3321 additions and 364 deletions
+2 -3
View File
@@ -1,11 +1,10 @@
// Returned by `addListener`; invoke it to stop listening.
export type UnlistenCallback = () => void;
import type { UnsubscribeCallback } from './types';
// A source of health information: the current failures (of some domain-specific
// shape `F`) and a way to observe changes to them.
interface HealthInterface<F> {
getFailures(): F[];
addListener(listener: () => void): UnlistenCallback;
addListener(listener: () => void): UnsubscribeCallback;
}
// Health that also supports a user-driven retry of whatever is currently