import { throttle } from "https://deno.land/x/froebel@v0.23.2/mod.ts";
Create a throttled function that invokes fun
at most every ms
milliseconds.
fun
is invoked with the last arguments passed to the throttled function.
Calling [throttle.cancel]()
on the throttled function will cancel the currently
scheduled invocation.