Created
April 27, 2010 14:16
-
-
Save Chouser/380762 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
(use 'net.n01se.clojure-jna) | |
(doseq [i (range 4)] | |
(future | |
(jna-invoke Integer c/sleep 2) | |
(prn i))) | |
; ...waits about 2 seconds, then prints all four number. Seems to suggest | |
; nothing in this particular example is synchronized. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment