Pathfinder 1e for Foundry VTT
    Preparing search index...

    Function limit

    • Create limiting function

      The function is called immediately, unless it was recently called in which case the call is discarded until defined amount of time has passed.

      Parameters

      • callback: Function

        Function to call

      • ms: number = 100

        Milliseconds that must pass before the wrapped function can be called again.

      Returns Function

      • Limited function