On May 16, 2014, at 11:11 PM, Bruno Vecchi <vecch...@gmail.com> wrote:

> As per having a random frequency between an interval, could you clarify a 
> bit? Do you want the time between requests to be drawn randomly from some 
> distribution each time? If that's the case, the best way I can think of would 
> require a change in the implementation of the bucket filling go thread. 
> Instead of doing:
> 
>     (timeout some-constant)
> 
> it would have to do
> 
>     (timeout (sample distribution))
> 
> Or maybe even more generally just
> 
>     (timeout (gen-timeout))
> 
> where gen-timeout is just a function that returns a timeout value for the 
> next function call. For the common case it would have to be `(constantly 
> some-number)`.

I like gen-timeout the best.  It is the most general.  


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to