iya-sts
    Preparing search index...
    advance: (opts: any) => Promise<AdvanceResult> = advance

    Type Declaration

      • (opts: any): Promise<AdvanceResult>
      • Advances a counter that may only go up, agreed by every node sharing the store: accepted only when the value is above the highest ever stored (or both are 0). opts holds scope, key, value and realm (the ambient realm by default). Resolves { ok: true, advanced, highest }, or { ok: false, reason: 'behind' | 'store' }; the caller refuses on either, and it never rejects.

        Parameters

        • opts: any

        Returns Promise<AdvanceResult>