Future

2018-05-19 Thread Renata Soares
Hello, I am using future this way: (doall (map #(future () (range 1 max-size)) When the max-size is small like around 6, if I don't print (println (doall (map #(future () (range 1 max-size))), the result becomes empty (Without print) renata@renata:~/$ lein run ranking {} (With p

Re: Future

2018-05-19 Thread Alex Engelberg
Not sure what's going on with shutdown-agents, but you could call (run! deref ...) to wait for all the futures to complete. On Sat, May 19, 2018 at 3:29 PM Renata Soares wrote: > Hello, > > I am using future this way: > > (doall (map #(future () (range 1 max-size)) > > When the max-size is

Re: Future

2018-05-19 Thread Renata Soares
It worked, thanks! Em sábado, 19 de maio de 2018 19:38:28 UTC-3, Alex Engelberg escreveu: > > Not sure what's going on with shutdown-agents, but you could call (run! > deref ...) to wait for all the futures to complete. > > On Sat, May 19, 2018 at 3:29 PM Renata Soares > wrote: > >> Hello, >> >>

Re: Future

2018-05-19 Thread Moe Aboulkheir
(doall (pmap (range ...))) may be a viable approach also, depending on the behaviour you want. On Sat, May 19, 2018 at 11:42 PM, Renata Soares wrote: > It worked, thanks! > > Em sábado, 19 de maio de 2018 19:38:28 UTC-3, Alex Engelberg escreveu: >> >> Not sure what's going on with shutdown-agen