Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Function throttle

    • Wrap a callback in a throttled timeout. Delay execution of the callback function when the last time the function was called was delay milliseconds ago

      Parameters

      • callback: Function

        A function to execute once the throttled threshold has been passed

      • delay: number

        A maximum amount of time in milliseconds between to execution

      Returns Function

      A wrapped function which can be called to throttle execution