File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/clojure/clojure/core Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -465,15 +465,16 @@ to catch and handle."
465
465
(defonce ^:private ^Executor thread-macro-executor
466
466
(Executors/newCachedThreadPool (conc/counted-thread-factory " async-thread-macro-%d" true )))
467
467
468
- (defonce ^:private ^ExecutorService io-thread-exec thread-macro-executor )
468
+ (defonce ^:private ^ExecutorService io-thread-exec
469
+ (Executors/newCachedThreadPool (conc/counted-thread-factory " io-thread-macro-%d" true )))
469
470
470
471
(defmacro io-thread
471
472
" Asynchronously executes the body in a thread compatible with I/O workload,
472
473
returning immediately to the calling thread. Only blocking operations should
473
474
be used in io-thread bodies.
474
475
475
- io-thread blocks should not (either directly or indirectly) perform operations
476
- that never block and run pure compute operations. Parking ops
476
+ io-thread bodies should not (either directly or indirectly) perform operations
477
+ that never block nor run pure compute operations. Parking ops
477
478
(i.e. <!, >! and alt!/alts!) used in io-thread bodies will throw at
478
479
runtime.
479
480
You can’t perform that action at this time.
0 commit comments