Skip to content

Commit 7e92a19

Browse files
committed
Add async_tests and make a few fixes. All tests in async_tests now pass!
1 parent c7ddc64 commit 7e92a19

File tree

2 files changed

+468
-2
lines changed

2 files changed

+468
-2
lines changed

src/main/clojure/clojure/core/async.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,15 +480,15 @@ to catch and handle."
480480
[f]
481481
(let [c (chan 1)]
482482
(let [binds (clojure.lang.Var/getThreadBindingFrame)]
483-
(.newThread counted-thread-factory ;;; .execute thread-macro-executor
483+
(.Start (.newThread counted-thread-factory ;;; .execute thread-macro-executor
484484
(fn []
485485
(Var/resetThreadBindingFrame binds)
486486
(try
487487
(let [ret (f)]
488488
(when-not (nil? ret)
489489
(>!! c ret)))
490490
(finally
491-
(close! c))))))
491+
(close! c)))))))
492492
c))
493493

494494
(defmacro thread

0 commit comments

Comments
 (0)