Created
June 1, 2010 21:43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns nmanage) | |
(def running (atom true)) | |
(defn process | |
[] | |
(when @running | |
(prn "hi") | |
(Thread/sleep 1000)) | |
(recur)) | |
;;; | |
(send-off (agent nil) process) | |
(do | |
(prn "this prints now - fixed thanks to Shawn Hoover") | |
(Thread/sleep 2000) | |
(reset! running false)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment