@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface PatchWithRetryOptions

    interface PatchWithRetryOptions {
        maxAttempts?: number;
        backoffMs?: (attempt: number) => number;
        allowResurrection?: boolean;
    }
    Index

    Properties

    maxAttempts?: number

    Max retry attempts on version conflict. Defaults to 5.

    backoffMs?: (attempt: number) => number

    Called to compute a millisecond delay before the next attempt. Receives the attempt number that just failed (1-indexed). Defaults to jittered exponential backoff: Math.random() * (1 << attempt) (0–2 ms after 1, 0–4 ms after 2, …). Return 0 (or pass a function that does) to disable backoff.

    allowResurrection?: boolean

    When the row is deleted between the initial read and the write, patchWithRetry normally aborts with PatchConflictError to avoid silently resurrecting a deleted document. Set to true to treat the post-delete state as a fresh insert (re-running update(null) and inserting the result).

    Default: false.