File tree 1 file changed +8
-9
lines changed
src/main/clojure/clojure/core/async/impl 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 80
80
(catch ClassNotFoundException _
81
81
false ))))
82
82
83
- (def aot-compiling? clojure.core /*compile-files*)
84
-
85
- (defn vthreads-directive-of
86
- " Compares s to the value of the sysprop clojure.core.async.vthreads."
87
- [s]
88
- (= s (System/getProperty " clojure.core.async.vthreads" )))
83
+ (defn vthreads-directive
84
+ " Retrieves the value of the sysprop clojure.core.async.vthreads."
85
+ []
86
+ (System/getProperty " clojure.core.async.vthreads" ))
89
87
90
88
(defn aot-vthreads? []
91
- (and aot-compiling? (vthreads-directive-of " target" )))
89
+ (and clojure.core/*compile-files*
90
+ (= (vthreads-directive ) " target" )))
92
91
93
92
(defn runtime-vthreads? []
94
- (and (not aot-compiling? )
95
- (not (vthreads-directive-of " avoid" ) )
93
+ (and (not clojure.core/*compile-files* )
94
+ (not= (vthreads-directive ) " avoid" )
96
95
@virtual-threads-available?))
97
96
98
97
(defn- make-io-executor
You can’t perform that action at this time.
0 commit comments