feat: Automatically recover from frozen live streams (#2569)
- Closes: #2099
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user