Optionaloptions: Partial<AutoResetControllerImplOptions>ReadonlydepsReadonlylogA string prefix for all log statements made by this target.
True while an eligible error is being watched and a reset event
may still be emitted. Becomes false once the error is cleared, a
reset is emitted, or all retries are exhausted.
Listen to resetPendingChange events for changes.
Clears this object.
Dispatches an event.
The key of the event within EventMap
If the passed event is read-only, then it may be re-used/cached. Otherwise, it should be a new event object every dispatch. If no target property is set on the event, the target will be set to this host.
Returns true if the event host has any listeners.
Returns true if the event host has any listeners for the given type.
Adds an event handler for the given typed event.
The key representing the event type to listen for.
A callback to invoke when the event with the given type is dispatched.
Optionaloptions: SignalOptions
Options for changing listening behavior.
Returns a method, when invoked, removes the handler.
Sets the current playback error and, if eligible, begins watching for retry opportunities.
An error is eligible when it is a RequestError that did not
receive an HTTP response (i.e. response == null), indicating a
transient network failure such as connection loss or DNS failure.
All other errors — including HTTP failures with a response (4xx/5xx),
and non-RequestError errors — are ignored, since those are unlikely
to recover on their own.
Subsequent calls while an error is already set are ignored until the error is cleared via a reset emission or Clearable.clear.
After a reset, if another eligible error occurs, this method should be called again to schedule the next retry attempt.
The error to monitor for retry opportunities
Notifies when playback should be reset and retried after a transient, potentially-recoverable error.
Once an eligible error is set, the controller watches for opportunities to emit a
resetevent:Each error triggers a single retry timeout. If another error occurs after a reset, AutoResetController.setError should be called again to schedule the next retry attempt.