Permalink
Browse files

Use doall to force dereferencing of any atoms within a lazy seq.

  • Loading branch information...
1 parent 71c1fea commit 8bd55fa633529d23da3ad335f43d2bfbf501233a @lynaghk committed Oct 3, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 project.clj
  2. +1 −1 src/cljs/reflex/core.cljs
View
@@ -1,4 +1,4 @@
-(defproject com.keminglabs/reflex "0.1.1"
+(defproject com.keminglabs/reflex "0.1.2-SNAPSHOT"
:description "ClojureScript state propagation."
:license {:name "BSD" :url "http://www.opensource.org/licenses/BSD-3-Clause"}
@@ -5,7 +5,7 @@
(defn capture-derefed [f]
(binding [!recently-derefed (atom #{} :meta {:no-deref-monitor true})]
- (let [res (f)]
+ (let [res (doall (f))]
{:res res :derefed @!recently-derefed})))
(defn notify-deref-watcher! [derefable]

0 comments on commit 8bd55fa

Please sign in to comment.