Liking cljdoc? Tell your friends :D
Clojure only.

pg-realtime.throttle


create-throttlerclj

(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)`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close