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

    Function deferredStatus

    • decides the state from what the tables hold; pure, so testable without an object or alarm

      Parameters

      • entry: CacheEntry | undefined
      • queued: QueueRow | undefined
      • nowMs: number
      • alarmDelayMs: number = 1

        how soon the alarm runs again; the drain re-arms at +1 ms while the queue is non-empty

      Returns DeferredStatus