Skip to content

Commit f64cfe3

Browse files
committed
Merge upstream/master into master
2 parents 0679f81 + 021e714 commit f64cfe3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/manifold/go_off.clj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
[clojure.core.async.impl
88
[ioc-macros :as ioc]]
99
[manifold.stream :as s])
10-
(:import (java.util.concurrent Executor)
11-
(manifold.stream.core IEventSource)))
10+
(:import (manifold.stream.core IEventSource)))
1211

1312
(defn return-deferred [state value]
1413
(let [d (ioc/aget-object state ioc/USER-START-IDX)]
@@ -75,7 +74,7 @@
7574
(defmacro go-off-executor
7675
"Implementation of go-off that allows specifying executor. See docstring of go-off for usage."
7776
[executor & body]
78-
(let [executor (vary-meta executor assoc :tag 'Executor)
77+
(let [executor (vary-meta executor assoc :tag 'java.util.concurrent.Executor)
7978
crossing-env (zipmap (keys &env) (repeatedly gensym))]
8079
`(let [d# (d/deferred)
8180
captured-bindings# (clojure.lang.Var/getThreadBindingFrame)]

test/manifold/go_off_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[manifold.executor :as ex]
77
[clojure.string :as str]
88
[manifold.stream :as s])
9-
(:import (java.util.concurrent TimeoutException Executor)))
9+
(:import (java.util.concurrent TimeoutException)))
1010

1111
(deftest async-test
1212
(testing "values are returned correctly"

0 commit comments

Comments
 (0)