@lambda-musika/musika - v0.1.0
    Preparing search index...

    Function LimitRate

    • Limit the rate of calls to a function

      Type Parameters

      • TFn extends (...args: never[]) => unknown

      Parameters

      • fn: TFn
      • f: number

        The frequency (in Hz) to limit the rate to

      Returns (
          this: unknown,
          t: Time,
      ) => (this: unknown, ...args: Parameters<TFn>) => ReturnType<TFn>

      A function that limits the rate of calls to the given function