rmapi-js
    Preparing search index...

    Type Alias SyncOutcome

    SyncOutcome:
        | { kind: "upToDate"; report: SyncReport }
        | {
            kind: "synced";
            passes: number;
            report: SyncReport;
            retries: number;
            sent: number;
        }
        | { kind: "contended"; report: SyncReport; retries: number }

    the outcome of a sync

    Type Declaration

    • { kind: "upToDate"; report: SyncReport }
      • kind: "upToDate"

        nothing needed sending

      • report: SyncReport

        what else it found

    • {
          kind: "synced";
          passes: number;
          report: SyncReport;
          retries: number;
          sent: number;
      }
      • kind: "synced"

        the queued edits were sent

      • passes: number

        the passes run

      • report: SyncReport

        what else it found

      • retries: number

        the races lost on the way

      • sent: number

        the edits sent

    • { kind: "contended"; report: SyncReport; retries: number }
      • kind: "contended"

        other clients kept writing first, and the edits are still queued

      • report: SyncReport

        what else it found

      • retries: number

        the races lost