That solved my problem! Thanks l lot! Jacek
On 19 December 2017 at 20:08, Timothy Baldridge <tbaldri...@gmail.com> wrote: > Sometimes there's some weird interop with stuff like pmap and program > termination. What happens if you end your program with this function: > https://clojuredocs.org/clojure.core/shutdown-agents > > On Tue, Dec 19, 2017 at 1:05 PM, Jacek Grzebyta <grzebyta....@gmail.com> > wrote: > >> Hi, >> >> I have multi -mains project. Thus the execution looks like: >> >> java -cp location/file.jar some.method ...... >> >> >> One -main method looks like: >> >> (defn -main >> [& args] >> (let [validated (validate-args args)] >> (if (:msg validated) >> (println (st/join \newline (:msg validated))) >> (run validated)) >> (log/debug "finish"))) >> >> >> There is nothing special in that except in the run time I have displayed >> the last log "finish" and the program termination is done after ~1 min >> later what is annoying. I found it is caused by deeply hidden pmap even if >> it is wrapped by doall. I thought after pmap returns results all threads >> are finished i.e. the main thread waits until all sub threads will be >> finished. If I am right what else can cause the delay? The threads pool >> manager? >> >> Tanks a lot, >> Jacek >> >> -- >> 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. >> > > > > -- > “One of the main causes of the fall of the Roman Empire was that–lacking > zero–they had no way to indicate successful termination of their C > programs.” > (Robert Firth) > > -- > 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. > -- 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.