This function is used to shut down any running agents.
Following is the syntax.
Parameters − None.
Return Value − None.
An example on how this is used is shown in the following program.
(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)
The above program produces the following output.
0 Incrementing Counter 0
The key difference in the above program is that, the program will now terminate since all agents will shut down properly.