Skip to content

Instantly share code, notes, and snippets.

View skt041959's full-sized avatar

skt041959 skt041959

View GitHub Profile
@skt041959
skt041959 / README.md
Created February 8, 2022 10:06 — forked from runiq/README.md
Neovim throttle & debounce

What are these?

Functions that allow you to call a function not more than once in a given timeframe.

Throttling on the leading edge

This can be illustrated with timing diagrams. In the following diagrams, f designates call to the throttled function, t is the period where the timer is running, and x shows you the actual execution point of the throttled function.

f 1  2  3  4  5  6