iya-sts
    Preparing search index...
    barrier: (entry: any, wanted: any, stillWanted: any) => Promise<boolean> = barrier

    Type Declaration

      • (entry: any, wanted: any, stillWanted: any): Promise<boolean>
      • Waits for a worker to catch up to a generation, sharing one sync round per worker among readers, round after round, until it has or workers.readBarrierTimeoutMs has passed.

        Resolves on every path and never rejects. false means the worker is still behind: the caller REFUSES the request (STS-WORKER-0053) and does not serve it from what that worker has.

        Parameters

        • entry: any

          the worker's table entry

        • wanted: any

          the generation it must reach

        • stillWanted: any

          optional; asked between rounds, and a false answer (the client went away) ends the wait at once, resolving false

        Returns Promise<boolean>

        a promise of whether it caught up