Skip to content

Commit

Permalink
Fix Callable/Runnable bug in Clojure 1.8+
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Feb 25, 2019
1 parent e751924 commit 4961ed9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eftest/src/eftest/runner.clj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
result)))

(defn- ^Callable bound-callback [f]
(cast Callable (bound-fn* f)))
(let [bindings (get-thread-bindings)]
(reify Callable
(call [_]
(with-bindings* bindings f)))))

(defn- default-thread-count []
(+ 2 (.availableProcessors (Runtime/getRuntime))))
Expand Down

0 comments on commit 4961ed9

Please sign in to comment.