Skip to content

Commit ffa73a9

Browse files
committed
io-thread-loop
1 parent 00c5d31 commit ffa73a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,11 @@ to catch and handle."
496496
(close! c#)))))
497497
c#))
498498

499+
(defmacro io-thread-loop
500+
"Like (io-thread (loop ...))"
501+
[bindings & body]
502+
`(io-thread (loop ~bindings ~@body)))
503+
499504
(defn thread-call
500505
"Executes f in another thread, returning immediately to the calling
501506
thread. Returns a channel which will receive the result of calling

0 commit comments

Comments
 (0)