Prelude API
    Preparing search index...

    Function throttle

    • Returns a function that calls f at most once per wait milliseconds: the first call runs immediately, calls during the window are coalesced into one trailing call.

      Aborting signal drops the pending trailing call and makes further calls no-ops; a call after abort never reaches f.

      Parameters

      • wait: number
      • f: () => void
      • schedule: Scheduler = scheduler
      • __namedParameters: { signal?: AbortSignal } = {}

      Returns () => void