Skip to content

Commit 2c79f7c

Browse files
committedFeb 5, 2025
thread-call-impl
1 parent a4928ef commit 2c79f7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ to catch and handle."
462462
[& body]
463463
(#'clojure.core.async.impl.go/go-impl &env body))
464464

465-
(defn thread-impl
465+
(defn thread-call-impl
466466
[f workload]
467467
(let [c (chan 1)]
468468
(let [binds (Var/getThreadBindingFrame)]
@@ -483,22 +483,22 @@ to catch and handle."
483483
thread. Returns a channel which will receive the result of calling
484484
f when completed, then close."
485485
[f]
486-
(thread-impl f :mixed))
486+
(thread-call-impl f :mixed))
487487

488488
(defmacro thread
489489
"Executes the body in another thread, returning immediately to the
490490
calling thread. Returns a channel which will receive the result of
491491
the body when completed, then close."
492492
[& body]
493-
`(thread-impl (^:once fn* [] ~@body) :mixed))
493+
`(thread-call-impl (^:once fn* [] ~@body) :mixed))
494494

495495
(defmacro io-thread
496496
"Executes the body in a thread intended for blocking I/O workloads,
497497
returning immediately to the calling thread. The body must not do
498498
extended computation (if so, use 'thread' instead). Returns a channel
499499
which will receive the result of the body when completed, then close."
500500
[& body]
501-
`(thread-impl (^:once fn* [] ~@body) :io))
501+
`(thread-call-impl (^:once fn* [] ~@body) :io))
502502

503503
;;;;;;;;;;;;;;;;;;;; ops ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
504504

0 commit comments

Comments
 (0)
Please sign in to comment.