We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35e7ad9 commit 6139a90Copy full SHA for 6139a90
src/main/clojure/clojure/core/async/impl/dispatch.clj
@@ -81,10 +81,8 @@
81
(defn- make-io-executor
82
[]
83
(if virtual-threads-available?
84
- (-> (Thread/ofVirtual)
85
- (Thread$Builder/.name "async-vthread-io-" 0)
86
- .factory
87
- Executors/newThreadPerTaskExecutor)
+ (-> (Class/.getDeclaredMethod Executors "newVirtualThreadPerTaskExecutor" (make-array Class 0))
+ (.invoke nil (make-array Class 0)))
88
(make-ctp-named :io)))
89
90
(defn ^:private create-default-executor
0 commit comments