(create-throttler f ms)
Returns a channel in-ch
. Any vector of args put into in-ch
will invoke (apply f args)
at most
once per ms
. Immediately first, then (if more calls arrived) one trailing call with the last args.
To stop, just (close! in-ch)
.
Returns a channel `in-ch`. Any vector of args put into `in-ch` will invoke `(apply f args)` at most once per `ms`. Immediately first, then (if more calls arrived) one trailing call with the last args. To stop, just `(close! in-ch)`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close