Skip to content

Commit 3013206

Browse files
committed
latest updates
1 parent 88446ff commit 3013206

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/clojure_conj_talk/core.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@
8888
;; But future doesn't really fit here, as it returns a promise, why not make
8989
;; it return a channel? This is what core.async's thread macro does:
9090

91+
(thread 42)
92+
9193
(<!! (thread 42))
9294

9395
(thread (println "It works!" (<!! (thread 42))))
@@ -99,6 +101,7 @@
99101
;; does. It lets you write code that looks like the above code,
100102
;; but it re-writes all your code to use callbacks.
101103

104+
(go 42)
102105

103106
(<!! (go 42))
104107

0 commit comments

Comments
 (0)