Creates a throttled function that only invokes func at most once per every wait milliseconds.
Optional
{{ (...args: A[]): Promise; cancel(): void; }}
Creates a throttled function that only invokes func at most once per every wait milliseconds.