augment-vir - v32.4.1
    Preparing search index...

    Enumeration DebounceStyle

    Different types of debouncing for the Debounce class.

    Index
    AfterWait: "after-wait"

    Waits the given amount of milliseconds after the first call and then fires the latest assigned callback.

    .execute() calls with a 25ms debounce time looks like this:

    1st .execute() 2nd .execute() 3rd .execute() - 4th .execute() ...
    0ms 10ms 20ms 25ms 30ms 50ms
    fired! fired!
    FirstThenLatest: "first-then-latest"

    Fires on the first call, then fires at most once per the given amount of milliseconds with the latest assigned callback. Calls that land inside a wait are not dropped: the last one fires when the wait ends. Useful for resize handlers that need both an instant response and the final value.

    .execute() calls with a 25ms debounce time looks like this:

    1st .execute() 2nd .execute() 3rd .execute() - 4th .execute() ...
    0ms 10ms 20ms 25ms 30ms 50ms
    fired! fired! fired!
    FirstThenWait: "first-then-wait"

    Fires on the first call, then waits the given amount of milliseconds until another call is allowed through.

    .execute() calls with a 25ms debounce time looks like this:

    1st .execute() 2nd .execute() 3rd .execute() 4th .execute()
    0ms 10ms 20ms 30ms
    fired! fired!