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

    Type Declaration

      • (opts: any): Promise<ClaimResult>
      • Claims a single-use value once, for the whole cluster where the store is shared and for this process otherwise. opts holds scope, value, ttlMs and realm (the ambient realm by default). Resolves { ok: true, handle, claimedAt }, { ok: false, reason: 'used', existing } or { ok: false, reason: 'store', why }, on which the caller refuses; it never rejects.

        Parameters

        • opts: any

        Returns Promise<ClaimResult>