Interface Limiter

interface Limiter {
    cancel: () => void;
    limit: (run: () => void) => void;
    queue: RunQueue;
}

Properties

Properties

cancel: () => void

Cancels any outstanding function calls and scheduled queue entries

limit: (run: () => void) => void

Runs or schedules the specified function. The specified function replaces any previous function used with this limiter

queue: RunQueue