We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dff0e75 commit c829d8cCopy full SHA for c829d8c
1 file changed
src/main/clojure/clojure/core/async/flow/impl.clj
@@ -14,7 +14,7 @@
14
[clojure.core.async.impl.dispatch :as disp]
15
[clojure.walk :as walk]
16
[clojure.datafy :as datafy])
17
- (:import [java.util.concurrent Future Executors Executor TimeUnit]
+ (:import [java.util.concurrent Future Executor TimeUnit CompletableFuture]
18
[java.util.concurrent.locks ReentrantLock]))
19
20
(set! *warn-on-reflection* true)
@@ -31,8 +31,8 @@
31
(let [^Executor e (if (instance? Executor exec)
32
exec
33
(disp/executor-for exec))
34
- fut (java.util.concurrent.CompletableFuture.)]
35
- (.execute e ^Runnable #(.complete fut (apply f args)))
+ fut (CompletableFuture.)]
+ (.execute e #(.complete fut (apply f args)))
36
fut)))
37
38
(defn prep-proc [ret pid {:keys [proc, args, chan-opts] :or {chan-opts {}}}]
0 commit comments