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

    Function sleepBudgetMs

    • How long PHP may wait through the park in one invocation, in total.

      SLEEP_BUDGET_MS is the visitor allowance (2 s default, capped at 60 s); an alarm gets 15x that because nobody waits on it and a wait bills wall time with no CPU. Past the allowance a sleep returns at once and records how much it was short.

      Parameters

      • env: SiteEnv | undefined
      • kind: "request" | "alarm"

      Returns number