File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/main/clojure/clojure/core Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -555,15 +555,15 @@ IOC and vthread code.
555
555
Returns a channel which will receive the result of the body when
556
556
completed"
557
557
[& body]
558
- (if (not (dispatch/target-vthreads? ))
559
- (do (require-fresh 'clojure.core.async.impl.go)
560
- ((find-var 'clojure.core.async.impl.go/go-impl) &env body))
561
- (if (and (not (dispatch/vthreads-available-and-allowed? ))
562
- (not clojure.core/*compile-files*))
563
- (do (dispatch/ensure-runtime-vthreads! )
564
- `(thread-call (^:once fn* [] ~@body) :io ))
558
+ (if (dispatch/target-vthreads? )
559
+ (if (or (dispatch/vthreads-available-and-allowed? )
560
+ clojure.core/*compile-files*)
565
561
`(do (dispatch/ensure-runtime-vthreads! )
566
- (thread-call (^:once fn* [] ~@body) :io )))))
562
+ (thread-call (^:once fn* [] ~@body) :io ))
563
+ (do (dispatch/ensure-runtime-vthreads! )
564
+ `(thread-call (^:once fn* [] ~@body) :io )))
565
+ (do (require-fresh 'clojure.core.async.impl.go)
566
+ ((find-var 'clojure.core.async.impl.go/go-impl) &env body))))
567
567
568
568
(defonce ^:private thread-macro-executor nil )
569
569
You can’t perform that action at this time.
0 commit comments