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
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
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,
>>
>>
(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