drupflare/worker - v1.0.4
    Preparing search index...

    Interface ResubmitPlan

    The visitor experience for a form whose validator needs a deferred verification: queue it, re-post the same form after afterMs, and the second submission finds the result cached.

    The same token must be re-posted; a new one misses the cache every time and loops forever. The added latency is wall clock (one alarm cycle plus one round trip), not a CPU figure.

    interface ResubmitPlan {
        afterMs: number;
        attempt: number;
        message: string;
        resubmit: boolean;
    }
    Index
    afterMs: number

    how long to wait first

    attempt: number

    how many automatic re-submissions have already happened; the cap stops a loop

    message: string

    what to tell the visitor while it happens; empty when nothing should be shown

    resubmit: boolean

    whether the form should re-post itself rather than erroring