File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/clojure/clojure/core/async/flow Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1414 [clojure.core.async.impl.dispatch :as disp]
1515 [clojure.walk :as walk]
1616 [clojure.datafy :as datafy])
17- (:import [java.util.concurrent Future Executors Executor TimeUnit]
17+ (:import [java.util.concurrent Future Executor TimeUnit CompletableFuture ]
1818 [java.util.concurrent.locks ReentrantLock]))
1919
2020(set! *warn-on-reflection* true )
3131 (let [^Executor e (if (instance? Executor exec)
3232 exec
3333 (disp/executor-for exec))
34- fut (java.util.concurrent. CompletableFuture. )]
35- (.execute e ^Runnable #(.complete fut (apply f args)))
34+ fut (CompletableFuture. )]
35+ (.execute e #(.complete fut (apply f args)))
3636 fut)))
3737
3838(defn prep-proc [ret pid {:keys [proc, args, chan-opts] :or {chan-opts {}}}]
You can’t perform that action at this time.
0 commit comments