Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Set A Debounce Value For watchexec Projects

This one took me a while to figure out because I was doing the math wrong. Debouncing changes is done in the watchexec RuntimeConfig with:

Code

runtime.action_throttle(Duration::new(0, 100000000));

That value of _100000000__ is in nano seconds whichs translates to 0.1 second.

References