Skip to content

Commit c680930

Browse files
committed
cleaned up names and using cached pool for compute exec for now
1 parent 3bbb4d6 commit c680930

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,13 +463,13 @@ to catch and handle."
463463
(#'clojure.core.async.impl.go/go-impl &env body))
464464

465465
(defonce ^ExecutorService mixed-executor
466-
(Executors/newCachedThreadPool (conc/counted-thread-factory "async-mixed-thread-%d" true)))
466+
(Executors/newCachedThreadPool (conc/counted-thread-factory "async-mixed-%d" true)))
467467

468468
(defonce ^ExecutorService io-executor
469-
(Executors/newCachedThreadPool (conc/counted-thread-factory "async-io-thread-%d" true)))
469+
(Executors/newCachedThreadPool (conc/counted-thread-factory "async-io-%d" true)))
470470

471471
(defonce ^ExecutorService compute-executor
472-
(Executors/newFixedThreadPool 8 (conc/counted-thread-factory "async-compute-thread-%d" true)))
472+
(Executors/newCachedThreadPool (conc/counted-thread-factory "async-compute-%d" true)))
473473

474474
(defn thread-call
475475
"Executes f in another thread, returning immediately to the calling

0 commit comments

Comments
 (0)