Created
April 3, 2016 19:15
-
-
Save 6ewis/dcd71252a1277ed8d7b94e391a04d124 to your computer and use it in GitHub Desktop.
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
(let [n 2] (future (dotimes [_ n] (swap! counter inc-print))) | |
(future (dotimes [_ n] (swap! counter inc-print))) | |
(future (dotimes [_ n] (swap! counter inc-print)))) | |
;; | |
0;; | |
1;; | |
2;; | |
2;; | |
3;; | |
4;; | |
5 | |
@counter;; -> 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment