File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 7
7
[clojure.core.async.impl
8
8
[ioc-macros :as ioc]]
9
9
[manifold.stream :as s])
10
- (:import (java.util.concurrent Executor)
11
- (manifold.stream.core IEventSource)))
10
+ (:import (manifold.stream.core IEventSource)))
12
11
13
12
(defn return-deferred [state value]
14
13
(let [d (ioc/aget-object state ioc/USER-START-IDX)]
75
74
(defmacro go-off-executor
76
75
" Implementation of go-off that allows specifying executor. See docstring of go-off for usage."
77
76
[executor & body]
78
- (let [executor (vary-meta executor assoc :tag 'Executor)
77
+ (let [executor (vary-meta executor assoc :tag 'java.util.concurrent. Executor)
79
78
crossing-env (zipmap (keys &env) (repeatedly gensym))]
80
79
`(let [d# (d/deferred )
81
80
captured-bindings# (clojure.lang.Var/getThreadBindingFrame )]
Original file line number Diff line number Diff line change 6
6
[manifold.executor :as ex]
7
7
[clojure.string :as str]
8
8
[manifold.stream :as s])
9
- (:import (java.util.concurrent TimeoutException Executor )))
9
+ (:import (java.util.concurrent TimeoutException)))
10
10
11
11
(deftest async-test
12
12
(testing " values are returned correctly"
You can’t perform that action at this time.
0 commit comments