Optional ReadonlyleadingInvoke on the leading edge, as soon as a burst starts, in addition to any trailing invocation.
Optional ReadonlymaxUpper bound on how long invocation can be deferred while calls keep
arriving faster than delay. Without it, a continuously-called function
never runs.
Optional ReadonlysignalCancels any pending invocation when aborted, and leaves the function inert afterwards: later calls do nothing.
Stronger than plain cancel() on purpose. The signal is normally a scope's,
so a late event must not run the handler after teardown.
Optional ReadonlytrailingInvoke on the trailing edge — the classic debounce: run once activity has
stopped for delay ms.
Options for debounce.