File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 40
40
41
41
# run tests!
42
42
- run : lein do clean, test
43
+ - run : lein with-profile +older-core-async do clean, test manifold.go-off-test
Original file line number Diff line number Diff line change 10
10
[riddley " 0.2.0" ]
11
11
[org.clojure/core.async " 1.6.673" :scope " provided" ]
12
12
[potemkin " 0.4.6" ]]
13
- :profiles {:dev {:dependencies [[criterium " 0.4.6" ]]}}
13
+ :profiles {:dev {:dependencies [[criterium " 0.4.6" ]]}
14
+ ; ; core.async moved around some internal functions go-off relies on; this profile
15
+ ; ; helps test that go-off still works both with the new namespaces and the old
16
+ :older-core-async {:dependencies [[org.clojure/core.async " 1.5.648" :scope " provided" ]]}}
14
17
:test-selectors {:default #(not
15
18
(some #{:benchmark :stress }
16
19
(cons (:tag %) (keys %))))
Original file line number Diff line number Diff line change 6
6
[executor :as ex]
7
7
[deferred :as d]]
8
8
[clojure.core.async.impl
9
- [runtime :as async-runtime]
10
9
[ioc-macros :as ioc]]
11
10
[manifold.stream :as s])
12
11
(:import (manifold.stream.core IEventSource)))
13
12
13
+ ; ; a number of functions from `ioc-macros` moved to `runtime` in org.clojure/core.async "1.6.673"
14
+ ; ; since they were just moved without functionality changes, continue to support both via dynamic import
15
+ (if (find-ns 'clojure.core.async.impl.runtime)
16
+ (require '[clojure.core.async.impl.runtime :as async-runtime])
17
+ (require '[clojure.core.async.impl.ioc-macros :as async-runtime]))
18
+
14
19
(defn ^:no-doc return-deferred [state value]
15
20
(let [d (async-runtime/aget-object state async-runtime/USER-START-IDX)]
16
21
(d/success! d value)
You can’t perform that action at this time.
0 commit comments