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

    Function idStride

    • The id stride a lane allocates on, so two lanes cannot mint the same one.

      Lane n of lanes takes every id congruent to n modulo lanes + 1; the primary is offset 0. The sequence gains gaps, which Drupal tolerates.

      Parameters

      • lane: number
      • lanes: number

      Returns { offset: number; stride: number }