Call next-tick with a bound-fn to carry bindings across

This commit is contained in:
Daniel Compton 2016-08-16 15:24:21 +12:00
parent fead1b04b3
commit 46b85b1862
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
(ns re-frame.interop
(:import java.util.concurrent.Executors))
(:import [java.util.concurrent Executor Executors]))
;; The purpose of this file is to provide JVM-runnable implementations of the
@ -25,7 +25,7 @@
(defn next-tick [f]
(let [bound-f (bound-fn [& args] (apply f args))]
(.execute executor bound-f))
(.execute ^Executor executor bound-f))
nil)
(def empty-queue clojure.lang.PersistentQueue/EMPTY)