(ns clojure.examples.example
(:gen-class))
(defn Example []
(def counter (agent 0))
(println @counter)
(send counter + 100)
(println "Incrementing Counter")
(println @counter)
(shutdown-agents))
(Example)
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265711.html