File tree 1 file changed +4
-4
lines changed
src/main/clojure/clojure/core
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ to catch and handle."
462
462
[& body]
463
463
(#'clojure.core.async.impl.go/go-impl &env body))
464
464
465
- (defn thread-impl
465
+ (defn thread-call- impl
466
466
[f workload]
467
467
(let [c (chan 1 )]
468
468
(let [binds (Var/getThreadBindingFrame )]
@@ -483,22 +483,22 @@ to catch and handle."
483
483
thread. Returns a channel which will receive the result of calling
484
484
f when completed, then close."
485
485
[f]
486
- (thread-impl f :mixed ))
486
+ (thread-call- impl f :mixed ))
487
487
488
488
(defmacro thread
489
489
" Executes the body in another thread, returning immediately to the
490
490
calling thread. Returns a channel which will receive the result of
491
491
the body when completed, then close."
492
492
[& body]
493
- `(thread-impl (^:once fn* [] ~@body) :mixed ))
493
+ `(thread-call- impl (^:once fn* [] ~@body) :mixed ))
494
494
495
495
(defmacro io-thread
496
496
" Executes the body in a thread intended for blocking I/O workloads,
497
497
returning immediately to the calling thread. The body must not do
498
498
extended computation (if so, use 'thread' instead). Returns a channel
499
499
which will receive the result of the body when completed, then close."
500
500
[& body]
501
- `(thread-impl (^:once fn* [] ~@body) :io ))
501
+ `(thread-call- impl (^:once fn* [] ~@body) :io ))
502
502
503
503
; ;;;;;;;;;;;;;;;;;;; ops ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
504
504
You can’t perform that action at this time.
0 commit comments