Skip to content

Commit c829d8c

Browse files
committed
cleaning up import
1 parent dff0e75 commit c829d8c

File tree

1 file changed

+3
-3
lines changed
  • src/main/clojure/clojure/core/async/flow

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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)
@@ -31,8 +31,8 @@
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 {}}}]

0 commit comments

Comments
 (0)