Skip to content
Français

FallbackRecord

import type { FallbackRecord } from "@elie-laloum/outpost";
  • selectedRequired
    FallbackCandidate
    Candidate that produced the dispatch result; resume() and fork() continue with it.
  • attemptsRequired
    readonly FallbackAttempt[]
    Candidates that stopped before the selected one, in order, with the failure that ended each; empty when the first candidate succeeded.
export interface FallbackRecord {
  /** Candidate that produced the dispatch result. */
  readonly selected: FallbackCandidate;
  /** Candidates that failed before it, in order. */
  readonly attempts: readonly FallbackAttempt[];
}