The code below gives java.lang.IllegalArgumentException: More than one
matching method found: submit. Is there a way to tell Clojure which
submit method I want?
(defn do-stuff []
(+ 2 2))
(let [executor (java.util.concurrent.Executors/newSingleThreadExecutor)
future (.submit executor #(do-stuff))]
(println (.get future)))
--
R. Mark Volkmann
Object Computing, Inc.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---