Hi, I made a small library a while ago to help with this. It wraps different java executors and has a version of clojure future and future-call that allows you to pass an executor as argument:
https://github.com/mpenet/knit (require '[qbits.knit :as k]) (def x (k/executor :fixed :num-threads 10) (k/future x (do-something) (do-more)) ;; or you can just use k/execute with a callable: (k/execute x (fn [] ...)) - Max On Monday, February 11, 2013 5:50:03 PM UTC+1, Ari wrote: > > Hi, > > I'd like my web application to process uploaded text files in the > background; in which ways can I accomplish this? I thought of using a > message queue like 0mq to push jobs to workers within the web app itself. > While relatively straight forward this option seems a bit involved. > Suggestions/recommendations appreciated. > > Best, > Ari > -- -- 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/groups/opt_out.